Jump to content

Archived

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

freeloader

send line break with postfields

Recommended Posts

Hi,

I have a webpage which gives the user a multi line text field where he can type whatever he wants. After he typed and submitted, I read the content with $_POST and afterwards  want to send it to another side using cURL and POSTFIELDS value there.

My question is, how do I include the linke breaks? Because when the user hits enter to get a line break, I assume it messes the whole thing up?

thanks

Share this post


Link to post
Share on other sites
Use the [url=http://php.net/nl2br]nl2br[/url] function.

Umm, redarrow beat me :)

Share this post


Link to post
Share on other sites

×

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.