I'm trying to post a YouTube URL along with some other data. The YT URL has 2 parameters and looks something like this:
http://youtube.com/embed/ytid?wmode=transparent&showinfo=0
The full URL would be like this:
http://mysite/proc.php?param1=val1¶m2=val2¶m3=(the youtube url)
Without the second param (showinfo) it works correctly. But having an ampersand as part of of a parameter value splits the parameter itself, so my query string parameters end up looking like this:
param1: val1
param2: val2
param3: http://youtube.com/embed/ytid?wmode=transparent
showinfo: 0
How should I be handling this?
[EDIT] As helion3 pointed out, the query string needs to be html encoded and it is. The encoded value looks like this:
http://youtube.com/embed/ytid?wmode=transparent&showinfo=0
And the query string parameter ends up like this:
param3: http://youtube.com/embed/ytid?wmode=transparent
amp;showinfo: 0