The Rise of the Religious Right in the Republican Party
a public information project from TheocracyWatch.org

Unsubscribe from TheocracyWatch News
 
0){ $out="account status is " . mysql_result($result,0,"mode"); $unconflink="http://www.theocracywatch.org/unsubscribe.php?id=" . mysql_result($result,0,"emailistid") . "&key=" . $akey; // send the confirmation link to email address $header = "From: TheocracyWatch n"; $message="Please click the URL below to confirm unsubscribing from TheocracyWatch News:"; $message.= "\n\n" . $unconflink; $message.="\n\nIf you wish to remain subscribed, just ignore this email, the subscription will continue."; $message.="\n\nThank you!\n\nwww.theocracywatch.org"; $ret=mail($_POST['email'],"Confirm unsubscribe from TheocracyWatch News",$message,$header); $out="Your request to unsubscribe has been processed. Please check your email for confirmation instructions. Thanks!"; } else $out="You are not currently subscribed."; } else $out=mysql_error($db); $done=1; } //confirmation links if($_GET['key']!="" && $_GET['id']!="" && $REQUEST_METHOD!="POST"){ $sql="SELECT * FROM email_list where emailistid=" . $_GET['id']; $result = mysql_query($sql,$db); if(mysql_num_rows($result)>0){ $id=mysql_result($result,0,"emailistid"); //confirm unsubscribe if(mysql_result($result,0,"mode")=="unpending" && mysql_result($result,0,"confirmkey")==$_GET['key']){ $sql="delete from email_list where emailistid=" . $id; mysql_query($sql,$db); $out="You have been unsubscribed. Thanks!"; } } $done=1; } ?>

Your email address:

Last updated: 24-Jan-2004