While the site is "under construction", I want to have a page up that allows visitors to input their email address so that I can email them when it is done, and also when we upload a new song etc etc.
I've called the page "index.htm" (because it'll be the main page up until the rest is done). In index.htm I have this:
Code: Select all
<form action="email.php" method="post"></form>Then for "email.php" I have:
Code: Select all
<?php
$email_list = ("email.txt");
$emails = file($email_list);
$fp = fopen($email_list , "a");
fputs($fp , "$new_email");
fclose($fp);
?>How do I assign the variable "$new_email" to the email address that has just been entered? So when someone enters their email I want it to equal $new_email.
Also are email.php and index.htm even right?
Any help is very much appreciated