tbare Posted November 20, 2007 Share Posted November 20, 2007 relatively new to php... pardon the horridly noobish question, please Here's what i want to do: when a user clicks a link, it takes them to a site AND sets the value of $file so i can have 1 page that plays all video files, just calling a different file name for each (be it in the form of humor_video.php?video=blah.avi or any other way, really... any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/78136-solved-postable-or-alternative/ Share on other sites More sharing options...
trq Posted November 20, 2007 Share Posted November 20, 2007 What part are you stuck with exactly? Quote Link to comment https://forums.phpfreaks.com/topic/78136-solved-postable-or-alternative/#findComment-395415 Share on other sites More sharing options...
tbare Posted November 20, 2007 Author Share Posted November 20, 2007 sorry... most all of it, really... here's what i've got, and i'd really love to not have to make a separate page for every video file, but just change the link on "video_humor.php" <table border="0" cellspacing="0" cellpadding="15" align="center" width="100%"> <?php $file = "fox_hat.avi"; print "<tr><td>\n"; print "<center><embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' name='mediaplayer1' showstatusbar='1' EnableContextMenu='false' autostart='true' width='500' height='500' transparentstart='1' loop='0' controller='true' src='files/video/$file'></embed></center>\n"; print "</td></tr>\n"; print "<tr><td>\n"; print "<br><br>\n"; print "<center><a href='files/video/$file'>Download $file</a> | (Right click, save target as)</center>\n"; print "<br>\n"; print "<center><a href='humor_video.php'>Back to videos</a></center>\n"; print "<br><br>\n"; print "</td></tr>\n"; ?> </table> and right now, this is in "humor_video_fox_hat.php", i'd like to get it so the link that point to this file would point to "humor_video_play.php?file=fox_hat.avi" actually, is that all i do? now that i'm looking at it, i think i just answered my question... Quote Link to comment https://forums.phpfreaks.com/topic/78136-solved-postable-or-alternative/#findComment-395422 Share on other sites More sharing options...
tbare Posted November 20, 2007 Author Share Posted November 20, 2007 got it... i'm a dork $file = $_GET['file']; where the link is <a href='humor_video_play.php?file=fox_hat.avi'> Thanks for the help, though! Quote Link to comment https://forums.phpfreaks.com/topic/78136-solved-postable-or-alternative/#findComment-395431 Share on other sites More sharing options...
revraz Posted November 20, 2007 Share Posted November 20, 2007 Sometimes just posting it and reading what you post solves the issue Quote Link to comment https://forums.phpfreaks.com/topic/78136-solved-postable-or-alternative/#findComment-395432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.