Jump to content

help with new rows(nl2br() func in php)


UnknownPlayer

Recommended Posts

Hi,

i need help with sending text with new rows(nl2br() func in php).

When i do this:

xmlhttp.open("GET", "send_post.php?content="+post_text, true); 

post_text is text with new rows, but in send_post.php i take that variable from $_GET and write that text to mysql, but there are no new rows :S

 

Example text:

some
text
here

.. it will write it to mysql like this:

sometexthere

Link to comment
https://forums.phpfreaks.com/topic/228653-help-with-new-rowsnl2br-func-in-php/
Share on other sites

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.