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

PRINT blabblabla looks like sh*t !?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I use a form to post some things on a html page,
the thing is when I use:

print FILE &quot;<b>Message:</b><BR><PRE>$FORM{'msg'}</PRE>\n&quot;;

The Output don´t look like the input.
Input in the textbox:
Blablabla Blablabla
BlaBlaBlaBla
Some more text here.................

The output in the html page looks like:

Blablabla Blablabla


BlaBlaBlaBla


Some more text here.................


WHAT HAVE I DONE WRONG ?????
Thx in advance
Patrik (xcuse the poor english, im from Sweden)
 
I suspect your problem might be in the difference between UNIX style line endings and DOS/Windows style endings. You might try replacing all of your '\r' chars with null before you print.

$text =~ s/\r//gs;


Additionally, I welcome the question and hope to be of help, but, Tek-Tips frowns on profanity in posts and that subject line comes pretty close. 'just my opinion.

I hope this helps. If it does not, please come back and we'll pursue it further.

HTH



keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top