Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2007, 09:45 AM   PM User | #1
Sonjaaa
New Coder

 
Join Date: Aug 2006
Posts: 44
Thanks: 4
Thanked 0 Times in 0 Posts
Sonjaaa is on a distinguished road
Really easy question about collecting info from user

what's the easiest way to collect a list of emails of people who visit my website, in a little box where they have the option of submitting their email if they want to be notified when my product is ready in the future?

It should just append their submitted email on a new line of a txt file somewhere that I can retrieve later.

Halp! I need codes.

Sonja
Sonjaaa is offline   Reply With Quote
Old 07-09-2007, 10:02 AM   PM User | #2
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
  • Create the html form for the email.
  • Validate that the email is a valid email address. (link)
  • Use fopen and fwrite to append the new email address to the file. (You're probably going to want to use fopen in "a" mode.
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

Last edited by StupidRalph; 07-09-2007 at 10:21 AM.. Reason: Added a link
StupidRalph is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:58 AM.


Advertisement
Log in to turn off these ads.