View Single Post
Old 02-13-2008, 05:08 PM   #1 (permalink)
Wysocki
Recruit
 
Join Date: Jan 2005
Location: Covina, CA
Posts: 21
Wysocki is on a distinguished road
Passing a parameter to php from the URL

I've worked a bit with php and html but now I have what seems to be a really simple problem that I'm stuck on. I have a webpage at Ace Pelizon - Video that contains code to show a flash video file. By going to just the video.php page, I want it to play the default video file (acevideo.flv) but I want to be able to have it come up with another video file by just putting the filename in the url, like this:

Code:
http://acepelizon.com/html/video.php?vidfile=othervideo.flv
Then in php, I would be able to use the $vidfile variable to insert the filename into the flash script. I initially thought I should be able to do this with just html, but then I gave up and switched to php so that I could pre-process the page and put in the new filename. But I still have no idea how to make this work. I've been Googling for over an hour with no success. Can anyone give me a clue here?
__________________
Wysocki is offline   Reply With Quote