redarrow Posted May 24, 2006 Share Posted May 24, 2006 How do i use a link to call the case1 and case2 with $_GET thank you.[code]<?phpif ($_GET['blah']) {switch ($_GET['blah']) {case 1: echo'<table><td>Playing Video</td></table><OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE="your file or url"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM name="uiMode" value="full"> <PARAM name="PlayCount" value="9999"></OBJECT><br>'; break;case 2: echo'Playing Music<OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE="your file or url"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM name="uiMode" value="full"> <PARAM name="PlayCount" value="9999"></OBJECT><br>'; break;}}?><a href="$_GET["blah"]case 1>play Video</a><br><a href="$_GET["blah"]case 2>play Video</a>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10316-how-to-use-link-with-_get/ Share on other sites More sharing options...
Prismatic Posted May 24, 2006 Share Posted May 24, 2006 [code]<?phpecho "<a href=".$_SERVER['PHP_SELF']."?blah=1\">play Video</a>";echo "<a href=".$_SERVER['PHP_SELF']."?blah=2\">play Video</a>";?>[/code]Will do it :) Quote Link to comment https://forums.phpfreaks.com/topic/10316-how-to-use-link-with-_get/#findComment-38461 Share on other sites More sharing options...
redarrow Posted May 24, 2006 Author Share Posted May 24, 2006 [!--quoteo(post=376559:date=May 24 2006, 04:26 AM:name=Prismatic)--][div class=\'quotetop\']QUOTE(Prismatic @ May 24 2006, 04:26 AM) [snapback]376559[/snapback][/div][div class=\'quotemain\'][!--quotec--][code]<?phpecho "<a href=".$_SERVER['PHP_SELF']."?blah=1\">play Video</a>";echo "<a href=".$_SERVER['PHP_SELF']."?blah=2\">play Video</a>";?>[/code]Will do it :)[/quote]Thank you is there any way to show the two links at the same time when showing the player.[!--quoteo(post=376562:date=May 24 2006, 04:30 AM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ May 24 2006, 04:30 AM) [snapback]376562[/snapback][/div][div class=\'quotemain\'][!--quotec--]Thank you is there any way to show the two links at the same time when showing the player.[/quote]This is what i am trying to do without javascript.show the users profile and a link for the users music / videobut at the same time the video player shows or the music player shows but within the profile.so what ever button they press the profile shows but with music or video. Quote Link to comment https://forums.phpfreaks.com/topic/10316-how-to-use-link-with-_get/#findComment-38463 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.