Hello,
I really need help coding something that a person could put there email in then click submit and go to a redirect page that says thanks blah blah then in 5 sec it redirects them back to the home page. And somehow I would find out the email they submitted and add them to an updates list.
Now I have the forum and they will fill it out submit it and it goes to the redirect page, that's simple enough. However I got this PHP code and I'm not sure what to do with it, or what to do to collect the emails.
The code I have is:
<?php
$email = $_REQUEST['email'];
$results = "where you want the inputed text to save to";
date_default_timezone_set("est");
$fh = fopen($results, 'a') or die ("cant open file");
fwrite ($fh, date('d-M-Y')."\t");
fwrite ($fh, $user."\t");
fclose($fh);
?>
Now I was told that I would end up collecting the email on a blank file on my sever but I'm still confused, I'm self taught and still am learning.
So please some one help.
Clayton
