i'm trying to Commit a formmailer.php to goto a error page whenever a
user Doesn't Enter a email or a comment
// i have // it always goes to a blank iframe and never Shows the
error page "yes the page exists"
helpppp
<?php
// * my Emailer PHP Code *//
$firstname = $_REQUEST['firstname'] ;
$lastname = $_REQUEST['lastname'] ;
$email = $_REQUEST['email'] ;
$description = $_REQUEST['description'] ;
if (!isset($_REQUEST['email'])) {
header( "Location: http://www.mcsmicro.net/pages/thanks.php" );
}
elseif (empty($email) || empty($description)) {
//Message to alert User that Form isn't Complete
header( "Location: http://www.mcsmicro.net/pages/woops.php" );
}
else {
// $todayis = date("l, F j, Y, g:i a") ;
mail( "[EMAIL PROTECTED]", "Feedback Form Results",
$description,"From: $email" );
header( "Location: http://www.mcsmicro.net/pages/thanks.php" );
?>