Mail List Subscription
session_start();
$name=$_POST['name'];
$email=$_POST['email'];
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$country=$_POST['country'];
$gender=$_POST['gender'];
$age=$_POST['age'];
$income=$_POST['income'];
$occupation=$_POST['occupation'];
if(isset($_REQUEST['Submit'])){
$key=substr($_SESSION['key'],0,5);
$number = $_REQUEST['number'];
if($number!==$key){
$vmsg1="Invalid Code!"; $send_now="9";} else { $vmsg1=""; $send_now="4";}
}
if (!$vmsg1) {$vmsg="";} else { $vmsg=$vmsg1; }
if ($send_now=='4') {
$recipient = "info@imagefl.com";
//$recipient = "scott@bluesprocket.com";
// SEND MESSAGE
$title="A SUBMISSION FROM THE IMAGE MAGAZINE SUBSCRIBE FORM";
$to = $recipient;
$subject = $title;
$message="
$title
Sender Info....
-------------------
Name: $name
Email: $email
Address: $address
City: $city
State: $state
Zip: $zip
Country: $country
Gender: $gender
Age: $age
Income: $income
Occupation: $occupation
";
// Send Newsletter
mail ($to, $subject, $message, "From: $email");
$sentmsg="Subscription Request Sent
";
}
?>
Mail List Subscription