Wonder if anyone out there uses FrontPage2002 as I want to create a simple box where visitors to my index page can opt to recieve a newsletter I would email out. Ideally, visitors would type in their email and submit the address which would go into my .txt or MS Excel. Does anyone know how, have suggestions or any experience?
Is pretty easy to do that.Your host allow php ? If so let me know and I'll help you to make the script.
Add this code where you want to add the form (on your index.html file) : <form target="_blank" action="add_email.php" method="post" name="add email"> <label>Your email : <input name="email" type="text" /></label> <input name="Submit" type="submit" value="Submit" /> </form> Code (markup): Download the attachament and add add_email.php and emails.txt to your website root. CHMOD emails.txt to 777 That's all.
Hello ExtremeData: Look towards the bottom of this page (above search box) how I added your code. You are correct....it is pretty easy. Now I will download that php.zip and I hope it is OK to ask you a few more questions to get this right! It looks like I will be able to collect all email addresses into a .txt NotePad file, correct? If so, this is perfect. KGive your thoughts on how this looks on your end.
I checked your page and the code seems to be correct. Now you must unzip the php.zip file and upload (via ftp or cPanel depends on your host) add_email.php and emails.txt where your index.html files is (usually into public_html folder). After you must chmod emails.txt to 777. All emails will be collected to emails.txt.When you want just download it and open with notepad or any text editor.
I just checked the test page and seems to be ok. What errors you mean ? Something like this : "test is not a valid email address." ? If so I've added a function to check if the email is valid or not. If someone add a valid email address ( for example ) the email address will be added to emails.txt file. Check emails.txt and you will see some test emails added by me now for test.