Alex Hogan <mailto:[EMAIL PROTECTED]> on Wednesday, January 21, 2004 7:18 AM said:
> Can some one point me in the right direction for a good tutorial on > form validation in PHP? Here is a basic practical application. <?php // gather and validate data $fname = (preg_match("/[a-zA-Z-\.\s]{2,25}/", $_GET['fname'])) ? $_GET['fname'] : 0 ; $zip = (preg_match("/[0-9]{5}/", $_GET['zip'])) ? $_GET['zip'] : 0 ; ?> Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php