SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Field Type? Help Please
-
Jul 29, 2003, 13:07 #1
- 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
-
Jul 29, 2003, 20:59 #2
- 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