View Single Post
Old 04-09-2004, 02:19 AM  
ZakAttack
Confirmed User
 
Join Date: Sep 2003
Location: Las Vegas, NV
Posts: 350
PHP Code:
<? 
$file = "remove.txt";
$log = "log.txt";


$email = $_POST['email'];
$ip = $_SERVER['REMOTE_ADDR'];
$date = date("h:i d-F-Y", time());

if($_POST['email'] && $_POST['Submit']){
    $fp = fopen($file, 'a');
    if(!$fp){
        echo "Can not open file $file";
    }else{
        fputs($fp, "$email\n");
        print ("You email has been removed from our mailling list, thank you for your time.<BR>");
        }
    fclose($fp);
    $fp = fopen($log, 'a');
    if(!$fp){
        echo "Can not open file $log";
        }else{
        fputs($fp, "$ip\t$email\t$date\n");
        }
    fclose($fp);
}    
?>
ZakAttack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote