Jump to content

submit form in PHP


jpopuk

Recommended Posts

Hi, I have setup a basic enquiry form with a Captcha - once the code has been inserted and is correct I want to action the form (submit) in PHP.

 

<?php

session_start();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$vResult = '';
if(strtolower($_SESSION['security_code']) != strtolower($_POST['security_code'])){
	$vResult = 'Invalid code!';
}
else{
	"/enquiry.php"
}
}
?>

 

I want to submit the form to /enquiry.php - I tried header(Location.. and realised that just redirects, and doesn't submit the form.

 

Any suggestions or tips would be great.

 

Cheers,

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/216975-submit-form-in-php/
Share on other sites

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.