form validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux