Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keeping values in a form if not completed

Status
Not open for further replies.

shsh

IS-IT--Management
Mar 6, 2005
1
IL
hello.
i build a store in ASP. i have a problem with the form.
1. i have to write a space in the value of the text boxes, so it won't have an error.
2. i keep the values from the client in sessions, and present them at the values with response.write.
3. if the client did not fill the form correctly he will get a notice, the values are kept but becuase of the spaces (where the client did not fill a text box) i get an erroe that the field must be filled.

how can i avoid it?
thank you
shsh
 
why do you need to write spaces? are you connecting to a database? if so I have had this problem before, in access its just a case of turning on the allow nulls in the table designer for each field. It should then work without needing the spaces and solve your problem? else you need to store all your values temporarily in a cookie or session variable etc.

hope this helps somehow

Gram
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top