form validation

From: Date: Sun, 25 Mar 2007 18:28:26 +0000
Subject: form validation
Groups: php.general 
Request: Send a blank email to php-general+get-251338@lists.php.net to get a copy of this message
I''ve tried !preg_match and !eregi to validate my form. I get back whatever the user inputs into the textboxes. I would like to validate each textbox before submitting and redirect the user after submission? Here's part of the code <?php // Script 1 handle .html // Should accept First & Last Name email address phone city state // Validate input from textfields if (!preg_match("/[^a-zA-Z\.\-\Ä\ä\Ö\ö\Ü\ü\ ]+$/s",$firstname)); { print '<p>Please enter Letters from A to Z</p>'; } --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.

« previous php.general (#251338) next »