/ Published in: PHP
Make sure you create the email.txt! The file can be accessed so password protect it or something. Email.txt will save it in CSV format.
Expand |
Embed | Plain Text
<?php /** * Mailing List Script * Copyright 2009 - www.pgmr.co.uk - [email protected] */ function showForm() { echo ' <form method="post" action=""> Email Address: <input type="text" name="email"> <br /> <input type="submit" value="Submit" name="submit"> </form> '; } $logname = 'email.txt'; } else { $filecontents = $email.','; if(!$fileopen or !$filewrite or !$fileclose) { } else { echo 'Your email has been added.'; } } } else { showForm(); } ?>
You need to login to post a comment.
