Re: Form Value Validation
| From: | Miguel Cruz | Date: | Thu, 21 Mar 2002 07:58:15 +0000 |
| Subject: | Re: Form Value Validation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89469@lists.php.net to get a copy of this message | ||
On Thu, 21 Mar 2002, David Johansen wrote:
> I was wondering if there was a way to do validation of the values in forms.
> I know that I could just check it all after it's been submitted with a post,
> but is there any way to do it as they're entering the data or when they
> click the button right before it sends the data?
Sure, go read about JavaScript. Doesn't have much to with PHP except that
you can dynamically generate the JavaScript code to go along with
dynamically-generated forms, if the need arises.
Also please remember that plenty of people surf with JavaScript off,
some by choice and some because of institutional policy. So you should
make sure your page still works without it.
But all this is a matter for another forum.
miguel