Jump to content

Validate fields and then submit form for processing


Julian

Recommended Posts

Hi

I have this code:

if($sti->checkPost() === true){
echo "<h1>Thank you, they mached!</h1>";//This is the line I want ot change
}elseif($sti->checkPost() === false){
echo "<h1>Wrong input! Try again!</h1>";
}

I'm checking for match the CAPTCHA value first.  If it's TRUE I want to process the POST values on another file (I keep the form separated from the process).

Does anybody know the code to process the form at another file when it's true?

If I put header (Location....  I get an error:  headers already send by...

Thanks guys, always good answers here.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.