Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Problem with PHP form Re: Problem with PHP form

#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