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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New line in Textarea

Status
Not open for further replies.

RISTMO

Programmer
Nov 16, 2001
1,259
US
Hey,

I have a textarea... I'm trying to insert a newline in two places...

Code:
<textarea name=""><%= Address1 %>
<%= City %>, <%= State %> <%= Zip %>
<%= Country %></textarea>

I've also tried
Code:
<textarea name=""><%= Address1 %>\n
<%= City %>, <%= State %> <%= Zip %>\n
<%= Country %></textarea>

That seems to work, except that it also shows "\n" in the textarea...

This has to be really simple...

Thanks,
Rick

RISTMO Designs: Rockwall Web Design
Arab Church: Arabic Christian Resources
Genuine Autos: Kaufman Chevrolet & Pontiac Dealer
Rick Morgan's Official Website
 
The only other way is to use &#13; (carriage return), but I don't think that'll even work. It'll just be output as text like the '\n'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top