Micro Niche Builder
+ Reply to Thread
Results 1 to 2 of 2

Thread: Have Textarea box save line breaks

  1. #1

    Default Have Textarea box save line breaks

    Is there any way to make a textarea box save <br /> automatically. I have a text area box on my page and then I save what the user types into a database with PHP and then output it later on. right now though it wont save any line breaks unless they use HTML.

    Is there a way to make it rich text (I think that is what its called).

    On a side note, how would I type <br /> in a paragraph and not have it be executed but instead be displayed as text.

    Thanks.


  2. Micro Niche Builder

  3. #2

    Default

    You could use <pre> $content </pre> to show the linebreaks... It's not the best way of doing it but probably the easiest.

+ Reply to Thread

Similar Threads

  1. Hangover sequel breaks US record
    By decipher in forum Entertainment
    Replies: 4
    Last Post: 07-08-2011, 11:55 PM
  2. Jay-Z breaks Elvis album record
    By decipher in forum Entertainment
    Replies: 0
    Last Post: 09-16-2009, 10:51 PM
  3. Jackson's sister breaks silence
    By decipher in forum Entertainment
    Replies: 0
    Last Post: 09-10-2009, 07:51 PM
  4. Aplus.net Breaks Ground with the Tikiwiki
    By W3Reports in forum Internet Marketing Forum
    Replies: 0
    Last Post: 12-07-2005, 10:02 PM

Bookmarks

Posting Permissions

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