Validating Fields from a HTML form using ASP before writing form data to a database
Can anyone give me any guidelines on validating data in a HTML form?
I need to validate that the fields are not empty, that certain fields only contain numbers, cetrtain fields only contain letters, and that one field only contains a date value.
I want to do this in ASP befor the information from the form is used to create an SQL statment which is going to be used to insert the data into an access database.
Here are some interesting server-side validation links:
Server-Side Form Validation by Dianna Leech
An Email Validation Routine by Joćo Vieira
An Email Validation Script by Ben Durbin
Form Handler: Some light form validation and error notification.
Uses function to loop thru all fields in a form.
And here are some interesting client-side validation links:
WebDaily: Your daily source for Web Technology Tips and Tricks!
Just checks if fields filled in.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)