sending HTML in $_GET...

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

Post Reply
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

sending HTML in $_GET...

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

urlencode()
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

Post 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
Post Reply