PHP Form Problems

Out of context: Reply #4

  • Started
  • Last post
  • 7 Responses
  • vaxorcist0

    I just sent a few, it didn't seem to validate the fields.... I was able to send blanks... sorry to pollute your db with junk....

    Even if I use a jquery validator, (which in this case isn't working) I also add a PHP validator, partly for anti-spammer purposes, as they turn off javascript....

    if(!$_POST[' field1']){
    $err.="field1,";
    }
    if(!$_POST[' field2']){
    $err.="field2,";
    }
    if($err){
    print "please fill in $err and go back";
    }else{
    // do stuff
    }

View thread