Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New lines with PHP 1

Status
Not open for further replies.

rrsub

MIS
Joined
Oct 23, 2002
Messages
536
Location
US
I have a <TEXTAREA> </TEXTAREA> form. When I post the form into a DB then retreive it to post it in html, there are no 'new lines', everything is run together.

How can I fix that?
 
Thanks Vragabond.

Now to tweak this a bit more,

When I enter text in the <TEXTAREA>, the first line is tabbed. How can I stop that?
 
You mean first line when you enter in the textarea has a tab character in front? Can you delete that tab? Could be from interpreting white space incorrectly. Have you tried putting the textarea start and end tag right next to each other? Like so:

<textarea></textarea>
 
That's what it was. In my PHP I had a '\n' after the first tag and a '\t' in front of the close tag. I usually like to keep the html clean for troubleshooting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top