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

\n not working.... 1

Status
Not open for further replies.

martinm

IS-IT--Management
Joined
Mar 30, 2001
Messages
113
Location
GB
Hopefully an easy one this!!

printf("\nErrorMessage=xxxxxx");
printf("\nErrorDescription=" . $error);

doesn't produce newline. Tried echo, tried single quotes, same problem.

Ta.
 
Are you looking for a line break in the html code itself or a line break in the webpage interface?

If you're looking for a line break in the webpage interface, you'll need to use "<br>" instead of \n, as \n will only create a line break in the html itself.

*cLFlaVA
----------------------------
A polar bear walks into a bar and says, "Can I have a ... beer?"
The bartender asks, "What's with the big pause?
 
Single quotes won't help. You might want to try \r\n. Some systems require that kind of syntax for a newline character.
 
Thanks, it needed the <br>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top