Back
]",$input)!=1) && (substr_count($input,'@')==1)) { return '1'; // Input is OK. } else { return '0'; } } if (isset($_POST['action']) && $_POST['action'] == 'Submit') { $company = 'Evolution Newsletter sign-up'; $cemail = 'thelight@lightinstitute.com'; // $cemail = 'transaction@tu.net.au'; // --- REQUIRED FIELDS --- if ($_POST['name']!='' && (emailCheck($_POST['email'])=='1')) { $status = 1; // Email was sent. // ----- ADMIN AND USER DETAILS ----- $to = $company." <".$cemail.">"; $headers .= "From: ".$_POST['email']."\r"; $touser = "<".$_POST['email'].">"; $headersuser .= "From: <".$cemail.">\r"; $subject = $company.' '.$_POST['formname'].' - '.$_POST['name']; // ----- ADMIN MESSAGE ----- $adminmsg = $company.",\n\n"; $adminmsg .= "Below are the details provided by ".$_POST['name']." (".$_POST['email'].").\n\n"; $adminmsg .= "The user has been sent a copy of this message if they had provided their email address:\n----------------------------------------\n\n"; // ----- MESSAGE ----- $message = "Dear ".$_POST['name'].",\n\n"; $message .= "Thank you for your newsletter registration.\n\n"; $details .= "The registration detail you sent us are as follows:\n\n"; $details .= "\nDetails:\n----------------------------------------\n"; if ($_POST['name']!='') $details .= "Name: ".$_POST['name']."\n"; if ($_POST['email']!='') $details .= "Email: ".$_POST['email']."\n"; // $details .= "\nThis message was sent from the following IP details: IP Address: ".$REMOTE_ADDR." - Host Name: ".gethostbyaddr($REMOTE_ADDR); // ----- SEND ----- mail($to,$subject,$adminmsg.$message.$details,$headers); mail($touser,$subject,$message.$details,$headersuser); echo '

Your registration has been requested successfully!

'; } else { $status = 0; // Email was not sent. echo '

Your registration has NOT been sent! Please check your details and try again.

'; } } ?>

All media representatives interested in scheduling an interview with Chris Griscom, please contact:

Abby Kraus PR

AbbySKraus@yahoo.com

312-933-2636

Copyright © 2007 The Evolution of God. All Rights Reserved