i have a form with 2 textbox and 2 buttons if i push the 2nd button it summits the form to a process page and add both textbox info into a database( with the check if they are empty), this because the form action is set to go to that page.
but i want the 1st button to do a test if the 1st textfield is empty and if is not i want it to post just the value of the first textbox to another page(process2).
i've got the 2nd button working allright but i dont know how to so set up the code to the first button.
I am trying to what seems simple but can not get it to work. I am using Ultradev 4
I have a form that uses a checkbox to indicate weather a call has been closed or not. However if the call has been closed then I need a resolution text field to contain data. ie: If checkbox selected then resolution textfield can't be empty.
I've tried yaromats check form extension but it DOES NOT work as I am using a multiline text field. The extension works for a sinle line textfield but not a multiline.. I don't know why?
As a result I don't get the option to select this field using the "This must be checked to" option in Yaromats extension.
for example... the data in my datafield is "BROWN DOGS" but when I viewed it on my asp page it will only display "BROWN" do you have any idea on how I could display the whole content? my source code is this -->
I have 4 radio buttons and beside each radio button I have a textfield. When a certain radio button is selected, only the text field beside it becomes enabled and the rest of the text fields are disabled. What I would like to do is to be able to change the background color of the text fields so they are grey if they are diabled and white if enabled.
I have a bunch of text fields that the user tabs through. How would I go about calling a function when a specific textbox loses focus so that when they tab out I can make a pop up and allow them to select some info
I have javascript calander in the form of three list boxes (day, month, year). when selected I would like the values to put into a text field in Dreamweaver so I can then submit to the database. Is this possible and how could it be achieved.
I'm trying to retrieve the name of a textfield, instead of it's value. I'm using a html page with a very simple form, containing 8 textfields. When submitted I call an asp page, and from that page I want to retrieve the textfield names from the submitted form.
Does anybody have an idea how the do this? It's for entering value's into an xml file and i want to use the textfield name's for naming the new xml elements.
how do i retian values in the textfield even after it is submitted ? Like for example, when you fill out most application forms, after submitting if there is an error it redirects you back to the first page alerting you of the error but the other values still remain. I would like to incoporate this function. where i can find them ?
how do i retian values in the textfield even after it is submitted ?
Like for example, when you fill out most application forms, after submitting if there is an error it redirects you back to the first page alerting you of the error but the other values still remain..
This is the snippet I use to achieve the above example, which is fine, when I use this snippet, and make the &""& without space between the quotes, then it returns: -
I am trying query the data from db and populate in the web form's textbox field. so far I cannot put that record into the text field box. anyone has idea on that, below is my sample code:
I'm trying to deal with a few records in a db that are missing data in one or more fields, which breaks my page, causing a BOF or EOF error, since the recordset is empty. I can check for an initial EOF, before any traversing of the records, but don't know how exactly to bypass execution of the record accessing from there.
I am working with an array that I am populating off my database. However, in some instances the array will be empty. Is there any way to determine an empty array besides ubound = 0 (which might mean 1 record in included)?
users are entering data, but when they submit the form, once in a while request.forms returns an empty string instead of the string its supposed to get. Anyone seen this behavior before? Is there a solution
i want to count all the records in my database where a certain field is empty.
heres my statement: "SELECT Count(*) As Total FROM table WHERE field1='value' AND field2=' ' "
gives an error. If it not possible. can the next be done: 1 count all the records. 2 count the records where field2='Yes' 3 subtract the two to get where field 2 is empty?
i know it's just something small, but i can't seem to figure it out. i also tried field2 != 'Yes'
It works fine, but sometimes the Subject Name field is empty, so instead of a blank space, I'd like to put something like "Empty Recordset" there. Is there anyway to do this with my current code?
How the heck do you work out what is actually in a db field that appears to be empty? I have fields that appear to be empty but do not seem to evaluate to empty or null, so test using IsEmpty or IsNull are useless, I 'm guessing it contains spaces or non-printing characters of some sort but how do I test for these?
This one's probably been asked before but I'm tired of trying to find a solution (if there is one!). I have an asp update page and I'd like to convert all empty fields to NULL prior to updating the Access db rather than permitting zero length fields in the db.
Is this possible? Is there any way to globally declare this for all text fields on the asp page rather than having to do a whole whack of "if then" formats? Is there something I can set in the field's properties in Access that will deny zero length yet won't cause the asp update to choke and return an error?
I have a Recordset that pulls data if 'Promotion' field in data base contains 'promo' and subsequently displays data from a field called 'TourTitle' on my ASP page..
However if the 'Promotion' field is empty in the database, I get an error on my page.. I have tried to use the following, but it is not working..
I have a login page where I have three different ways to authenticate a user.
1. Use integrated authentication and read the server variable AUTH_USER and then verify if this is a valid user from a database. If OK I write some session cookies and then re-direct to another page placed in the same folder (which will read the cookie and verify that it is valid). This works OK.
2. Use anonymous login where the user is typing in a username/password which is checked against a database and if OK I write session cookies and then re-direct to other page which reads this cookie. This also work OK.
3. Now we read another server variable that is set by a third party oracle product (don't know much about this product but when I print the value of the servervariable it is OK). I write some cookies and then redirect to another page. When I read the cookie now it is empty. If I read the cookie just before I do my re-direct it is OK but after the re-direct it is empty.
Do you have any sugestion why the cookie becomes emtpy after the re-direct in the third case but not in the other two? It is the same code doing the actual reading/writing of the cookies in all three options above.
I have a table in MS Access that's used for users to post announcements on. There's only one problem- if it's empty (meaning there are no announcements), the page returns an error stating that either BOF or EOF is true. Basically, it doesn't like the null status of the table. Is there a way to state something like 'There is nothing currently here.'? I've been playing with this code but it hasn't worked yet:
If an.EOF=an.BOF Then Response.Write("There are currently no system announcements.") Else do while not an.eof 'This starts a loop that lists them all End If