Sign Up to Receive Updates by Email
if (isset($_REQUEST[‘fields_email’]))
//if “email” is filled out, send email
{
//send email
$email = $_REQUEST[‘fields_email’] ;
$organization = $_REQUEST[‘fields_organization’] ;
$message = “Email Address: “.$email.”rnOrganization: “.$organization;
mail(“wcook@crec.net, billybook@gmail.com”, “Addition to Journal Mailing List”, “Please add the following to the C2ER Journal mailing listrn”.$message, “From:”.$email);
echo “Success!
“.$message;
//echo “Thank you for using our mail form”;
}
else
//if “email” is not filled out, display the form
{
?>
//if “email” is filled out, send email
{
//send email
$email = $_REQUEST[‘fields_email’] ;
$organization = $_REQUEST[‘fields_organization’] ;
$message = “Email Address: “.$email.”rnOrganization: “.$organization;
mail(“wcook@crec.net, billybook@gmail.com”, “Addition to Journal Mailing List”, “Please add the following to the C2ER Journal mailing listrn”.$message, “From:”.$email);
echo “Success!
“.$message;
//echo “Thank you for using our mail form”;
}
else
//if “email” is not filled out, display the form
{
?>