www.webdeveloper.com
Results 1 to 8 of 8

Thread: How do you save user entered text?

  1. #1
    Join Date
    Feb 2012
    Posts
    4

    Question How do you save user entered text?

    I am new to HTML and was wondering if i put a text box for users to type in, how i would take what they typed in and save it somewhere where only i can view it to see what has been written! I know the logic of what i want to do but i cant write it in HTML language!

  2. #2
    Join Date
    Mar 2011
    Posts
    1,137
    To save information provided by users, the job is usually done with a database and a script on the server that hosts your site. You should be able to find a formmail script that would send the user data to you by Email, though. But HTML on its own can't store information on your website. Good luck!
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Feb 2012
    Posts
    4
    Thanks for that! i knew it was going to be more complicated than a simple 'if' statement. Do you know how i would link the html page where the user types in text to the other page where the information is emailed to me?

  4. #4
    Join Date
    Feb 2012
    Location
    North East US
    Posts
    15
    Have you considered using a form for this?

    Check it out: http://www.w3schools.com/html/html_forms.asp

  5. #5
    Join Date
    Mar 2011
    Posts
    1,137
    Search for "formmail script" and you'll find what you're looking for. Good luck!
    Rick Trethewey
    Rainbo Design

  6. #6
    Join Date
    Jan 2012
    Posts
    24
    Sure. Html can save the data on client side. It is done by cookie.
    There is example:

    If index1.html have those lines:
    <div id="busines_12" pararule="para1">
    <div class="para1" name="email_address"></div>
    <div class="para1" name="user_name"></div>

    In index2.html:
    It can be used as 12.0 in index2.html as the value of "email_address" in index1.html. 12.1 int index2.html as the value of "user_name" in index1.html.

    It is done by the framework of tagcgi. It's object is to make HTML can be used as PHP or C++ to write client or server sides scripts.

  7. #7
    Join Date
    Nov 2002
    Posts
    2,632
    Saving data in a cookie is the least secure way of doing so.

  8. #8
    Join Date
    Jan 2012
    Posts
    24
    Quote Originally Posted by spufi View Post
    Saving data in a cookie is the least secure way of doing so.
    Yes. If you want client to save data. You have no choice. But if you want this is done by server. There also have more secure server session here. But will cost network flow.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles