
June 16th, 2000, 10:49 PM
|
 |
Contributing User
|
|
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
|
|
|
The javascript routine is client side - the onSubmit() executes client side before the form is posted and therfore before the values in option_desc[] exist-
if you send the page to itself via the form ,then validation will occur but your validation routine runs before the form is actually submitted. onSubmit() return true; - will only send the form & post the variables if the validation was successful.
If you see what I mean?
Simon
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
|