Todini, Gianfranco (TWIi London) wrote:
where should I put now the form validation? I mean can I still use the
onsubmit event on the input type image and use the same _javascript_ function
that there was before or is it everytime better to have the validation on
the server-side to have a proper accessible form? Thanks everyone.
  
If you care at all about the valididy of your data, NEVER EVER rely upon cleint side validation. NEVER! Server side  validation is the  ONLY reliable form of data validation. It's too easy to bypass client side validation. Get strings can be typed manuelly. Post data, while better, isn't that much harder to forge. Even to forge a full header isn't rocket science.

As a rule of thumb: Client side scripting is for the benifit of the client; server side scripting is for your benifit.


Reply via email to