$email function editing
<p>im doing a small Unsubscribe link to know who unsub for a newsletter , 
the output email when users click on linke saved to flatfile</p>

<pre><code>$fileData=$_GET['email'];
$fileHandle=fopen("unsub.txt", "a");
fwrite($fileHandle,$fileData);
fclose($fileHandle);
</code></pre>

<p>my linke will be like mydomain.com/unsub.php?email=$email </p>

<p>my problems here to add adjust the code to replace $email when user click on link with his email which opened the link from , so i can add the real email to unsub.txt not the var $email</p>

<p>please advise </p>
