If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > copy data during validate

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-06, 16:30
pbaldy pbaldy is offline
Registered User
 
Join Date: May 2005
Location: Nevada, USA
Posts: 2,475
copy data during validate

This ASP rookie is creating a web page to let customers make limo reservations. I validate the user input prior to appending the data to the server. If it fails validation, I want to leave their input there so they don't have to input it again. This seems easy to do with textboxes:

value = <% = request.form("Passname")%>

but is there a similarly easy way to do this with drop down boxes? Since the way to set that value appears to be:

selected="selected"

on the appropriate option, the only way I see to retain the input is an If/Then for each option, which seems like a lot of effort. Am I missing something?

TIA
__________________
Paul
Reply With Quote
  #2 (permalink)  
Old 06-16-06, 10:55
csamuels csamuels is offline
Registered User
 
Join Date: Mar 2006
Location: south jersey, usa
Posts: 53
i setup a contact us page for ppl to send email messages to my department. If validation fails, i reported the error and created a link using javascript's history.back(). This keeps all form data intact.

http://www.farmersofsalem.com/contact_us.htm

leave user verification blank to test.
__________________
"They say Moses split the Red Sea
I split the blunt and rolled the fat one, I'm deadly"
-- Tupac 'Blasphemy'
Reply With Quote
  #3 (permalink)  
Old 06-16-06, 11:35
pbaldy pbaldy is offline
Registered User
 
Join Date: May 2005
Location: Nevada, USA
Posts: 2,475
Thanks; I'll take a look and see if I can figure it out.
__________________
Paul
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On