Jump to content


Photo

send line break with postfields


  • Please log in to reply
3 replies to this topic

#1 freeloader

freeloader
  • Members
  • PipPipPip
  • Advanced Member
  • 175 posts

Posted 13 October 2006 - 01:45 PM

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

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 13 October 2006 - 01:51 PM

nl2br()
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 13 October 2006 - 01:51 PM

Use the nl2br function.

Umm, redarrow beat me :)

#4 freeloader

freeloader
  • Members
  • PipPipPip
  • Advanced Member
  • 175 posts

Posted 13 October 2006 - 04:51 PM

* bangs head against wall * of course :P Thanks ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users