Jump to content

nl2br & text area & /r/n problem !!


yami007

Recommended Posts

without using any function to display what the user has entered in a textarea if there has been any errors in the form, the issue comes this way :

when i jump the lines in textarea as usual :

hi i am just trying to enter the world of php.

and i am here to learn more & more.

this turns to be this way hi i am just trying to enter the world of php.\r\nand i am here to learn more & more.

why this? and how can i prevent this ??

Link to comment
https://forums.phpfreaks.com/topic/186791-nl2br-text-area-rn-problem/
Share on other sites

it normally works without nl2br function, but i am not calling $_POST[]

i am using sessions to save what users post to submit them in other page and then return them to the same page where they were submitted !

so with or without nl2br, this thing does not work.

i dont know what to do, i am stuck here !!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.