in reply to How to validate the form in CGI
I think the biggest problem is your invalid submit element:
<input type="submit" value="Submit" onsubmit=">When you're making any sort of CGI program, especially one that uses JavaScript, you should do the following to debug:
That being said, you can never depend on a user having javascript turned on. If there is some sort of validation going on in the form, you should also validate it in the form backend, to make sure that the values are what you expect. (it may be that someone has JS turned off, or someone may be malicious and connect directly to your backend to try to force bad data on you).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to validate the form in CGI
by dorward (Curate) on Mar 08, 2005 at 13:22 UTC | |
by jhourcle (Prior) on Mar 08, 2005 at 16:02 UTC |