Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    4
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    • 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.
    Last edited by StupidRalph; 07-09-2007 at 10:21 AM. Reason: Added a link
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •