[thelist] help with form validation using ASP/VBScript

raskenbo raskenbo at gmail.com
Mon Feb 28 16:04:06 CST 2005


On Mon, 28 Feb 2005 15:39:34 -0600, Pringle, Ron <RPringle at aurora-il.org> wrote:
> Hi all-
> 
> Another ASP/VBScript question.
> 
> I have a database of events with multiple tables. I've created a form to
> enter new events into the db, no problem.
> 
> However, upon submission of the form, I would like to first validate the
> data. I would like to do this within the page the user is on.
> 
> So, upon clicking the submit button, required fields, etc. should be
> checked, and if not valid, focus should return to that field. If all the
> form fields are valid, then the record record should be entered into the db.
> 
> I wrote a function to check the fields of the form, but I'm unsure of how to
> call the function from the form itself and how to feed the form data to the
> function.

This "Server-Side Form Validation" section on the following page should help:
http://www.4guysfromrolla.com/webtech/LearnMore/Validation.asp

ken


More information about the thelist mailing list