Results 1 to 3 of 3

Thread: Save button in HTML (exactly)

  1. #1
    Join Date
    Aug 2013

    Save button in HTML (exactly)


    I want to make a button that saves the content within a textarea exactly the same as typed in the textarea.

    So if you type:


    I am browsing webdeveloper.com

    That you don't get:
    Hello I am browsing webdeveloper.com

    You see?

    Is it possible to save something from a textarea? Or shall I need JS too?

    Thanks for reading,


  2. #2
    Join Date
    Feb 2013
    You'll need a server side language (PHP for one) and as for your exact question. You need to format your text in order to put in line spacing, line breaks and tabs. If you just want to put line breaks, so that it will look like the above. Then something like nl2br in the line of code in php when you are writing the code or from a client side (still using a server side language to display...I know a little confusing) then you can use <pre></pre> HTML tags. Or a third option you can use a third party script, but for the life of me I can't think of one. However, I'm sure you can find one by simply doing an internet search.
    An in case I'm all wet on you programming skills then like I said finding a third party script should do the trick for you.

  3. #3
    Join Date
    Oct 2013
    3rd planet from the sun
    I believe html5 local storage can do this

Thread Information

Users Browsing this Thread

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

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