Re: Validating form input data




Jerry Stuckle wrote (in part):
You may want to take a look at this forms generation and validation
class that shows you how to do that. Additionally it generates your
forms with Javascript to validate the form also on the client site,
avoiding unnecessary server round trips just to tell the user the form
has invalid fields.

http://www.phpclasses.org/formsgeneration



And what happens if someone has javascript turned off?

NEVER rely on client side validation!


Also, what happen if a hacker screen scraps your form and uses another
program to send information to your script directly to try to break it
or use it in ways you didn't think about.

Please go to the PHP Security Consortuim's web site <phpsec.org> and
read the different articles in both the "Articles" and "Library"
sections.

Ken

.



Relevant Pages

  • Re: Perl output Javascript to validate user input
    ... I know javascript is used for client site, ... If we embed Javascript within Perl script to validate user input, ...
    (comp.lang.perl.misc)
  • Perl output Javascript to validate user input
    ... I know javascript is used for client site, ... If we embed Javascript within Perl script to validate user input, ... I feel the method will bring the server more ...
    (comp.lang.perl.misc)
  • Re: Anyone know AJAX / PHP?
    ... in terms of a php generated javascript array. ... If compression is properly configured. ... the messages and dates..so you have a local copy to validate against. ...
    (comp.lang.javascript)
  • Re: Help with
  • Re: calling a function from a iframe
    ... You could exploit the associative power of an "object" oriented ... (particularly in Javascript, this affinity between arrays and objects ... window["I'm quite cute a name for a variaBle ain't it guys? ... check here how many sites do NOT validate ...
    (comp.lang.javascript)