June 30th, 2000, 01:21 AM
Hi, Jumping in the deep end I'm starting PHP by writing
a virtual postcards system.
I would like to pass a complete < TEXTAREA > including
CR/LF without the user needing to add special characters.
Any suggestions please.
With my kind regards,
NOTE: Jords answer below solved the problem -thnak you.
[This message has been edited by pjlewis (edited June 30, 2000).]Peter
[This message has been edited by pjlewis (edited June 30, 2000).]
June 30th, 2000, 03:52 AM
You'll have to convert the newline characters to html breaks(<BR> ) if you want to do this. Use the PHP function nl2br to do this, i.e:
$textarea_with_brs = nl2br($textarea);
I think this should help you,
June 30th, 2000, 07:15 AM
You also need to...
(unless magic quotes is on)