"; if (empty($lastname)) $error.="Lastname is missing
"; if (empty($country)) $error.="Country is missing
"; if (empty($email)) $error.="E-Mail address is missing
"; elseif (!preg_match($email_pattern,$email)) $error.="E-Mail address is invalid!
"; //madm if (empty($instruction) || $instruction<1 || $instruction>2) $error.="Invalid instruction!
"; } else { $firsttime = true; $state=""; $country=""; } $states=array(""=>""); $result = mysql_query("select code,state from states order by state"); while (list($key,$val)=@mysql_fetch_row($result)) $states[$key]=$val; mysql_free_result($result); $countries=array(""=>""); $result=mysql_query("select code,country from countries order by country"); while (list($key,$val)=@mysql_fetch_row($result)) $countries[$val]=$val; mysql_free_result($result); /*madm $instructions=array( 1=>"1 Please place me on your mailing list.", 2=>"2 Message only. Do not put me on your mailing list." );*/ ?> The Spirit of Ma'at - Notify Form
ABOUT US CONTACT US JOIN OUR E-MAIL LIST OUR LINKS SITE MAP SEARCH SITE
\n\n\n\n"; in_textarea("Comments or
Questions","comments",$comments,6,51); winfooter(); ?>
Ma'at Magazines Ma'at Shop Letters
from Drunvalo
News Archives
",$user_notification_subj,$user_notification_text,"From: $webmaster_email\nReply-To: $webmaster_email\nX-Mailer: PHP/".phpversion()); } list($u_id,$firstname_,$lastname_,$address1_,$address2_,$city_,$state_,$zipcode_,$country_,$phone_,$code)=@mysql_fetch_row($result); if ($instruction==1) { if (!empty($newemail)) { if ($code=="A" || $code=="T" || $code=="C") security_notify_user(); else { mysql_query("update users set email='".addslashes($newemail)."' where u_id='".addslashes($u_id)."'") or die($mysql_error_msg); } } if ($firstname!=$firstname_ || $lastname!=$lastname_ || $address1!=$address1_ || $address2!=$address2_ || $city!=$city_ || $state!=$state_ || $zipcode!=$zipcode_ || $country!=$country_ || $phone!=$phone_) { $user_notification_subj="Subscription update information"; $user_notification_text= "Hi $firstname!\n\n". "If you want to change your account information, please use the instruction\n". "\"2 Please update my mailing list information.\". Using the instruction 1\n". "will not change other fields except for e-mail.\n". "The form URL is http://www.spiritofmaat.com/notifyform.php\n". "You can go there and fill in only those fields which are to be changed.\n\n". $mail_signature; mail("$firstname $lastname <".(empty($newemail) ? $email : $newemail).">",$user_notification_subj,$user_notification_text,"From: $webmaster_email\nReply-To: $webmaster_email\nX-Mailer: PHP/".phpversion()); } } else { if ($code=="A" || $code=="T" || $code=="C") security_notify_user(); else { mysql_query("update users set email='".addslashes(empty($newemail) ? $email : $newemail)."',firstname='".addslashes($firstname)."',lastname='".addslashes($lastname)."',".(empty($address1) ? "" : "address1='".addslashes($address1)."',").(empty($address2) ? "" : "address2='".addslashes($address2)."',").(empty($city) ? "" : "city='".addslashes($city)."',").(empty($state) ? "" : "state='".addslashes($state)."',").(empty($country) ? "" : "country='".addslashes($country)."',").(empty($zipcode) ? "" : "zipcode='".addslashes($zipcode)."',").(empty($phone) ? "" : "phone_home='".addslashes($phone)."',")."date_modified=now(),archive='ON' where u_id='".addslashes($u_id)."'") or die($mysql_error_msg); } } } mysql_free_result($result);*/ break; case 3: case 4: break; case 5: $result=mysql_query("select u_id,username,email,code from users where email='".addslashes($email)."'"); if (mysql_num_rows($result)==0) { mysql_free_result($result); $result=mysql_query("select u_id,username,email,code from users where email='".addslashes($newemail)."'"); } if (mysql_num_rows($result)==0) { $user_notification_subj="Removal request failure"; $user_notification_text= "Hi $firstname!\n\n". "You have requested to remove your email address from mailing list at\n". "Spirit of Ma'at. Removal failed because the email address you have\n". "supplied is not in our database.\n\n". $mail_signature; mail("$firstname $lastname <$email>",$user_notification_subj,$user_notification_text,"From: $webmaster_email\nReply-To: $webmaster_email\nX-Mailer: PHP/".phpversion()); } else { list($u_id,$username,$u_email,$code)=@mysql_fetch_row($result); if ($code=="A" || $code=="T") { $webmaster_notification_subj="Mail list removal failure"; $webmaster_notification_text= "This is notification that user whose username is \"$username\",\n". "e-mail is \"$u_email\", has requested to remove him(her)\n". "from mailing list. Though, his code is \"$code\".\n\n"; mail($webmaster_email,$webmaster_notification_subj,$webmaster_notification_text,"From: $service_email\nX-Mailer: PHP/".phpversion()); } else { mysql_query("delete from users where u_id='".addslashes($u_id)."'"); } } mysql_free_result($result); break; /*madm default: die("Invalid instruction code. Please contact webmaster.");*/ } $webmaster_confirmation_subj="Notify Form"; $webmaster_confirmation_text= "First name: $firstname\n". "Last name: $lastname\n". "E-Mail: $email\n". "Country: $country\n". "Phone: $phone\n". //madm "Instructions: $instructions[$instruction]\n". "Comments: $comments\n\n--\n"; $user_confirmation_subj="Notify Form Verification"; $user_confirmation_text= "This is your notification requestion confirmation from\n". "The Spirit of Ma'at.\n\n". "We have received the following information:\n"; $user_confirmation_text.="Name: $firstname $lastname\n"; if (!empty($newemail)) $user_confirmation_text.="New E-Mail: $newemail\n"; if (!empty($address1)) $user_confirmation_text.="Street (1): $address1\n"; if (!empty($address2)) $user_confirmation_text.="Street (2): $address2\n"; if (!empty($city)) $user_confirmation_text.="City: $city\n"; if (!empty($state)) $user_confirmation_text.="State: $states[$state]\n"; if (!empty($zipcode)) $user_confirmation_text.="Zipcode: $zipcode\n"; if (!empty($country)) $user_confirmation_text.="Country: $country\n"; if (!empty($phone)) $user_confirmation_text.="Phone: $phone\n"; $user_confirmation_text.= "Your message has been sent to Spirit of Ma'at.\n". "We will reply to your request as soon as we have the opportunity.\n". "Thank you for your support!\n"; //madm "Instructions: $instructions[$instruction]\n\n". /* madm "If any of the above information is incorrect, you may correct it by ". "replying to this email with the word \"correction\" in the subject line ". "and then explaining your correction(s).\n\n". "IF YOU FEEL YOU HAVE RECEIVED THIS EMAIL IN ERROR, YOU MAY REMOVE YOUR ". "EMAIL ADDRESS FROM OUR LIST BY REPLYING WITH THE WORD \"remove\" IN THE ". "SUBJECT LINE.\n";*/ mail($notify_email,$webmaster_confirmation_subj,$webmaster_confirmation_text,"From: $email\nReply-To: $email\nX-Mailer: PHP/".phpversion()); mail("$firstname $lastname <$email>",$user_confirmation_subj,$user_confirmation_text,"From: $webmaster_email\nReply-To: $webmaster_email\nX-Mailer: PHP/".phpversion()); ?>


Welcome to The Spirit of Ma'at.

Within the next few minutes, you should receive a message confirming your notification request. If you receive this, it is because your email address was valid, and your notification request has been duly processed. If not, please try again.


Return to     Contact Page     Home Page

The following errors were detected:
$error
\n"; ?>

Contact Form


First Name:","firstname",$firstname,30,40/*,false,"Note: bold items are required."*/); in_text("Last Name:","lastname",$lastname,30,40); in_text("EMail Addr:","email",$email,40,60); in_select("Country:","country",$countries,$country); in_text("Phone (optional):","phone",$phone,16,20); //madm in_select("Instructions:","instruction",$instructions,$instruction); //madm echo "
 Note: Your information will not be sold or used in any other
manner than to alert you of Ma'at products, announcements, and events.


Note: bold items are required.

To add your name to the Spirit of Ma'at email list please click here.