PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
waskelton4
Forum Contributor
Posts: 132 Joined: Mon Sep 09, 2002 6:42 pm
Post
by waskelton4 » Mon Feb 14, 2005 12:17 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Feb 14, 2005 12:26 pm
urlencode()
waskelton4
Forum Contributor
Posts: 132 Joined: Mon Sep 09, 2002 6:42 pm
Post
by waskelton4 » Mon Feb 14, 2005 1:37 pm
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