Collecting email addresses with FrontPage form

Discussion in 'HTML & Website Design' started by dinrock, Mar 27, 2009.

  1. #1
    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?
     
    dinrock, Mar 27, 2009 IP
  2. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Is pretty easy to do that.Your host allow php ?
    If so let me know and I'll help you to make the script.
     
    ExtremeData, Mar 28, 2009 IP
  3. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #3
    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.
     

    Attached Files:

    • php.zip
      File size:
      925 bytes
      Views:
      45
    ExtremeData, Mar 28, 2009 IP
  4. dinrock

    dinrock Well-Known Member

    Messages:
    1,150
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #4
    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.
     
    dinrock, Mar 28, 2009 IP
  5. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #5
    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.
     
    ExtremeData, Mar 28, 2009 IP
  6. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #6
    Vebtools, Mar 28, 2009 IP
  7. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #7
    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.
     
    ExtremeData, Mar 28, 2009 IP
  8. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #8
    working fine now


    thanks for script
     
    Vebtools, Mar 28, 2009 IP