PLEASE HELP!
I started a site (www.poetsonly.com) and stored text data, collected from HTML forms, in a mysql database. One text item, called "EntryText" on the form, is a 45 character X 32 line text area entry. I stored it in mysql as a blob (don't ask me why). Now I want to PRINT the contents of $EntryText (the variable I set to the text) in HTML e.g.,
print ("$EntryText");
so that I can format it, change the fonts, etc. However, when people typed in the EntryText field in the form, they used the enter key, like any normal person, to do line breaks. Now I can't seem to figure out how to get the line breaks back in when I try to print it to HTML. If I [print ("$EntryText"); ] everything comes out in one line with no line breaks.
If I put $EntryText in a text area this way in a PHP print statement:
print ("SUBMISSION TEXT:<BR><textarea name=\"EntryText\" cols=\"45\" rows=\"32\" > $EntryText </textarea><br>" );
it displays just fine - but people can muck with the text and it has a box around it ... and I can't format it. The line breaks MUST be in there, because it formats correctly inside the textarea. But how can I get the line breaks converted to \r\n to print properly in HTML?
Any ideas for a perplexed newbie?
Thanks in advance