Re: forms checking
| From: | Manuel Lemos | Date: | Wed, 19 Jul 2000 20:08:31 +0000 |
| Subject: | Re: forms checking | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7370@lists.php.net to get a copy of this message | ||
Hello Maria,
On 19-Jul-00 14:13:15, you wrote:
>is there a way with PHP to check fields in a form to make sure they aren't
>blank before submitting the form? Can you call a function to execute when a
>form is submitted like you can with JavaScript? Or are there event handlers
>like OnClick or OnBlur? Or even, can you use JavaScript functions with PHP?
You may want to try this PHP form generation and validation class that does
precisely what you need. It generates the necessary Javascript to perform
several types of validation on the client side, while it can do the same
types of validation on the server side using the PHP code of the class or some
programmer supplied code to perform validation types that are not built-in
supported.
http://phpclasses.UpperDesign.com/browse.html/package/1
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--