214-564-5316
Friday, May 16, 2008

ASP Form Validation that submits to database and sends two emails (with code):
Since cDonts isn't used with newer servers, this example uses ASPmail.  With small changes in the mail code you can modify this to use CDOsys, ASPeMail or Jmail, etc.
Please use a real eMail address to see all of the functions. If the Fields are not valid then "On Submit" you'll see the text turn red and a prompt for you to fill in the field properly. When all fields are valid then you will be directed to a thank you page. Behind the scenes, two eMails have been sent. In this example, both will be sent to your eMail address. One eMail is an example of the one sent to the user. The other is an example of the one sent to you (as the site owner). This eMail has a link back to a working database so that you may immediately delete your eMail address. We do not collect any eMail addresses here on this sample page!
First Name:
Last Name:
Social Security:
Address:
City:
State:
Zip Code: format: xxxxx
Telephone No.: format xxx-xxx-xxxx
Email Address:

Download the code