escape a header ? so GET will work

Hi, Im trying to embed a flash player that needs to call a playlist that is dynamicly generated.

playlist.php?list_id=123

but I think the question mark is being picked up by the inclusion statement and not getting to the php.

I tried:
mysite.com/playlist.php%3Flist_id=725

thinking that if i used the hex for ? it might be able to get the list id to the php.  didnt work.

Without the list id the playlist cant be generated,  how can I pass the list id to the php script?

Thanks
<param name="movie" value="http://mysite.com/xspf_jukebox.swf?playlist_url=http://mysite.com/playlist.php?list_id=725&skin_url=http://mysite.com/Original/&autoload=true" /><param name="loop" value="false" /><param name="quality" value="high" />

Open in new window

LVL 1
ussherAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ussherConnect With a Mentor Author Commented:
I found the problem.

I was using 'if is not numeric' as a test on the variable to make sure it was there, and in the right form.  The variable was arriving but the flash file was appending suffix to the variable so it came out incorrect.

I passed it 123 but when it got to the php script through the flash it had become 123?0.9823749234  so wasn't getting through the numeric test which i interpreted as not arriving.

Thank you for your time.  Sorry for asking the wrong question that couldn't be answered.
0
 
Rob SiklosConnect With a Mentor Commented:
try running the php urlencode() function on the playlist_url param
0
 
ussherAuthor Commented:
Great thought.  but it didnt work.

it did the same as replacing it with hex.  except it got the = too.
playlist.php%3Flist_id%3D725
0
 
Oddsen84Connect With a Mentor Commented:
Take the variable out of the playlist url and pass it as a normal variable. then when retriving/using the variable just append it again
:)
0
 
ussherAuthor Commented:
I tried that but because the flie is embeded with HTML the variable is not passed to the file.

It is because the variable would not be picked up in the scope of the document that i changed it to go through the GET system
0
All Courses

From novice to tech pro — start learning today.