Home › Forums › Back End › Problem with PHP form › Re: Problem with PHP form
April 29, 2011 at 7:07 pm
#48636
ChrisBull
Member
You should have this all inside one .php file
$speech = "";
if(isset($_POST)) {
if ( $_POST == "" || $_POST == "" || $_POST =="" || $_POST =="" ) {
$speech = "You've Left Something Blank.";
} else {
$body = $_POST . 'n' .
$_POST . 'n' .
$_POST . 'nn' .
$_POST;
mail('[email protected]', "You've got mail!", $body);
//////Either have Speech Variable = to text so...
$speech = "Message Has been Sent!";
//////Or redirect to page to another .php page
header('Location: http://www.example.com/');
}
}
?>
Try that, and tell me what happens