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
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.
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)
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
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.