View Single Post
  #2 (permalink)  
Old June 4th, 2003, 02:41 AM
byron byron is offline
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

There are a number of ways you can do this depending upon how you pass the variables.

1, Validate on the same form with javascript

You can use a javascript function to check the data type and then open an alert box if data is not valid. You will find lots of examples if you type javascript form validation into google.

2, passing variables in the querystring

Here you can call the same asp page when the form is submitted, but add a flag either as a hidden field in the form or in the querystring to show the form has been submitted. You can then validate the data as the form reloads. If successful you can use the redirect command to go to the next page, passing the values in the querystring.

3, Validate on the receiving page.

You can validate on the next page and then write the error statement asking the users to 'go back' to correct the entry.

Hope this helps