session_start();
if(!isset($_GET[action]) || strlen($_GET[action])==0 ) $action = "view" ; else $action = $_GET[action];
?>
if($_POST && $action=="send"){
function check_email_format($email = "") {
if (ereg("[[:alnum:]]+@[[:alnum:]]+\.[[:alnum:]]+", $email)) {
return 1;
} else {
return 0;
}
}
$error = 0;
if($_POST['siteurl'] == '0'){
$error++;
$error_message = ' Please choose your site URL';
}
if(strlen($_POST['sitename']) == 0){
$error++;
$error_message = ' Please enter your site name';
}
if(strlen($_POST['email']) == 0){
$error++;
$error_message = ' Please enter your email address';
} else {
if(!check_email_format($_POST['email'])){
$error++;
$error_message = ' Incorrect email address';
}
}
if(strlen($_POST['name']) == 0){
$error++;
$error_message = ' Please enter your name';
}
if(!isset($_POST['radio'])) {
$error++;
$error_message = ' Please choose your type of award';
}
if($error == 0){
$from = $_POST['email'];
$subject = "My Miracle Baby Award of Honor Request";
$headers = "From: ".$from."\r\n"."Reply-To: ".$from."\r\n"."X-Mailer: PHP/" . phpversion();
$to = "customercare@mymiraclebaby.com";
//$to = "lokesh.verma@gmail.com";
$body ="Hello\r\n";
$body .= "You have received a new Award of Honor Request. Details are below:\r\n\r\n";
$body .= "Type of award: ".$_POST['radio']."\r\n";
$body .= "Complete name: ".$_POST['name']."\r\n";
$body .= "Email address: ".$_POST['email']."\r\n";
$body .= "Site name: ".$_POST['sitename']."\r\n";
$body .= "Site URL: ".$_POST['siteurl']."\r\n";
$body .= "Site description: ".$_POST['sitedescr']."\r\n";
$body .= "Other comments: ".$_POST['comments']."\r\n";
$body .= "How did you find our site: ".$_POST['sitefind']."\r\n";
$body .= "\r\nThanks\r\n";
mail($to,$subject,$body,$headers);
//$error_message = 'Successfully sent! Thank you for contacting us.';
$action = "success";
$_SESSION['image_random_value']= "fsdfsdfsd";
}
else{
$action = "view";
}
}
?>
Apply for a Site Award from My Miracle Baby
My Miracle Baby Award of Honor
Apply for these unique and special awards given out to those sites that truly touch the hearts of others. You can receive this heartfelt honor if your family friendly site gives hope and inspiration; has a story of survival; shows how you care for others; or is dedicated to a miracle baby or miracle mom. We also sincerely support work at home moms (WAHMs) because we truly know how difficult it is to run a household, care for your family and run your business.
Here are the special awards available. Please indicate the award* that is the best fit for you and your web site (*=required):
if($action=="view"){?>
}?>
if($action=="success"){?>
Request Submitted Successfully!
}?>
Term and Conditions
Business and personal web sites are eligible.
Site must contain original content.
Site must be family & child friendly. Adult site or sites containing links to adult sites will not be considered.
Sites must be in English or have an option to view in English
My Miracle Baby.com, Inc., complies with the Children's Online Privacy Protection (COPPA) rule, therefore, all site owners must be at least 14 years of age to apply for our awards.
To mutually support each other, a link must be provided back from your award to My Miracle Baby.com, Inc.
Please copy and paste the HTML code on your site to display the award you've won.