PDA

View Full Version : ASP form



basind
13 Sep 2006, 04:44 AM
I want to create an ASP form with text-boxes (single and multiline) and drop down lists.

After you submit, can it go to a thankyou page and an error page if certain textboxes aren't filled in.

Thanks in Advance

Fantasiser
22 Sep 2006, 08:16 AM
Ofcourse it can, with a good knowledge of any language, you can virtually do anything. I use ASP and basically it says

If textbox1 = "" Then
Response.Redirect(error.asp?type=textbox1) (Where that page states: "Please fill in textbox1")
ElseIf textbox2 = "" Then
Response.Redirect(error.asp?type=textbox2) (Where that page states: "Please fill in textbox2")
Else
Response.Redirect(thankyou.asp) (Where this page says: "thank you, form has been submitted, or something like that)

Forms can contain drop down lists, multiple selection lists and just plain text boxes for uses with either normal text or passwords.

Hope that helps

Edited Part: If you wish to see these text boxes in use, please view my website contact form here: www.fantasiser.com.au/contact .I dont have any errors that get sent back to the clients. But its a simple easy form