SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot croman's Avatar
    Join Date
    Apr 2003
    Location
    Minneapolis, MN
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Field Type? Help Please

    I have a form on a website that allows users to enter a Journal. They can type as much as they want.

    I have set the field type to TEXT

    Here is the problem

    If they enter something like
    This
    is
    my
    Journal


    It will go into the database as that, but when I call it back out it is retrieved as
    This is my Journal
    Without the linebreaks

    Is there a different field type I should use? I want to keep linebreaks and such that they enter

    Thanks

  2. #2
    SitePoint Evangelist
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have to replace \n with <br />
    in your page that displays the data
    just search google or sitepoint
    and i'm sure you'll find the function you need

    if you're using php, i suggest searching the php forum


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
  •