|  | Posted by Rami Elomaa on 05/06/07 06:07 
Art kirjoitti:> Geoff, I'm just trying to have validation in my form.  I check to see if
 > certain fields have values, if all the required fields have values, i want
 > to sent the data to another php form, that processes the request and sends
 > the data to a sql database and generates an email that a request has come
 > in.
 
 So you'll be requesting the user to submit it twice? That's complicating
 things unnecessarily. Once you have validated, just insert them into the
 database right away. You can do that by including the processing page if
 the fields check okay.
 
 Like this:
 
 if($_POST['submit']){
 
 if(!empty($_POST['field'])){
 
 // Here you include the processing script
 include('some.php');
 exit();
 
 }
 
 }
 
 --
 Rami.Elomaa@gmail.com
 
 "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
 usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
  Navigation: [Reply to this message] |