Need Help!

Discussion in 'Databases' started by GermBlaster, Dec 2, 2012.

  1. #1
    hello,

    i have a html site that ask's you to insert your email, but what i want to do is to take the inserted email text, and to add it to a text file on my host.

    This is how the code looks like.
    <!DOCTYPE html>
    <html>
    <body>
    <div class="column-title">
    <h1 class="step-title">Enter Email</h1>
    </div>
    <div class="column-description">
    <form name="email" action="">
    <input type="text" />
    </form>
    </body>
    </html>

    Thank you
     
    GermBlaster, Dec 2, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    You'll have to submit the form to a server-side program that adds the text to the file. (You'll have to name the input field in the form too.)

    From the way you're asking the question, I think you're going to need someone to do this for you.
     
    Rukbat, Dec 3, 2012 IP
  3. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #3
    in <form name="email" action=""> action="" needs to have another page in PHP which will process the information submitted in the form.
    You can find tutorials of beginner level in php to do a send email form, then you'll simply have to replace the sendemail action in php by write to a text file (append to the text file, to build a list)
     
    JamesColin, Dec 3, 2012 IP
  4. GermBlaster

    GermBlaster Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What i am trying to do is to record the emails inserted in the text-box to be stored at MYSQL database. Any examples or advice would be a great help. Thank You
     
    GermBlaster, Dec 3, 2012 IP
  5. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #5
    writing into a file or into a mysql database is about the same, except with the mysql database you complicate things when you don't know anything.
    As I told you, search on google for a tutorial with those keywords: "php mysql tutorial address book form" that should give you tutorials about creating a simple address book with php and mysql (and html of course) so do the tutorial and after you'll be able to adapt it easily to what you want to do.
     
    JamesColin, Dec 3, 2012 IP