sphinx Posted November 18, 2011 Share Posted November 18, 2011 Hello, Usually on my contact form I have: <form method='post' name="inputArea" action='process.php'> But i'm now using PHP captcha where it checks captcha in the index: if(isset($_POST["captcha"])) if($_SESSION["captcha"]==$_POST["captcha"]) { echo $_POST['process.php']; } else { echo 'CAPTCHA is not valid; ignore submission'; } ?> I've tried the above to submit the form, however, it's not doing anything, I needed the code to transfer the data to process.php as the first code supplied. Many thank Link to comment https://forums.phpfreaks.com/topic/251399-php-post/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted November 18, 2011 Share Posted November 18, 2011 change this echo $_POST['process.php']; to this require('process.php'); Link to comment https://forums.phpfreaks.com/topic/251399-php-post/#findComment-1289402 Share on other sites More sharing options...
ZulfadlyAshBurn Posted November 18, 2011 Share Posted November 18, 2011 what is your form code? the full one. Link to comment https://forums.phpfreaks.com/topic/251399-php-post/#findComment-1289403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.