Page 1 of 1

sending HTML in $_GET...

Posted: Mon Feb 14, 2005 12:17 pm
by waskelton4
I'm using CURL to POST a url to a seperate server and one of the vars in the url contains a bunch of HTML.

if the HTML has a "&" in it.. then it causes problems..

is there any way to send HTML code through a URL correctly?

Thanks
Will

Posted: Mon Feb 14, 2005 12:26 pm
by feyd
urlencode()

Posted: Mon Feb 14, 2005 1:37 pm
by waskelton4
my data also could contain the "+" so i used rawurlencode to display it.

The ampersand never did display but i just did a str_replace and swapped it out with "and" before sending..

thanks for the help..
ws