Subscribe

Free Words N Ways Commentaries sent to your email

Please Input Required Fields.“;
}
if (!ereg(“^[-A-Za-z0-9_]+[-A-Za-z0-9_.]*[@]{1}[-A-Za-z0-9_]+[-A-Za-z0-9_.]*[.]{1}[A-Za-z]{2,5}$”, $email)){
$error = 1;
echo “Invalid Email“;
}
if($error == 0){
$get = array($name,$email,$date);
$handle = fopen(’email_list.csv’, ‘a’);
fputcsv($handle, $get);
fclose($handle);
/**Code for emailing**/

$subject = ‘Greetings!’;
$email_name = ucwords($name);
$email_content =
“Thank you for signing up.
\n\n
Regards,\n
John Bennison

“;

$body = “Hi $email_name, \n\n$email_content”;
$headers = ‘From: Pathways Faith Community ‘ . “\r\n” . ‘Reply-To: jb@wordsnways.com’;

mail($email, $subject, $body, $headers);

$email_me = “jb@wordsnways.com”;
$subject2 = ‘[Pathwaysfaith – New Subscription]’;
$email_content2 = ”
New Subscription
Name : “.$email_name.”
Email : “.$email.””;
$headers2 = ‘From: jb@wordsnways.com ‘ . “\r\n” . ‘Reply-To: jb@wordsnways.com’;

mail($email_me, $subject2, $email_content2, $headers2);
/*END*/
echo ‘‘;
}
}
?>

” onblur=”if (this.value == ”) {this.value = ‘Name’;}” onfocus=”if(this.value == ‘Name’) {this.value = ”;}” value=”Name”/>
” onblur=”if (this.value == ”) {this.value = ‘Email’;}” onfocus=”if(this.value == ‘Email’) {this.value = ”;}” value=”Email”/>