Jump to content

Archived

This topic is now archived and is closed to further replies.

redarrow

how to use link with $_GET

Recommended Posts

How do i use a link to call the case1 and case2 with $_GET thank you.

[code]
<?php
if ($_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]

Share this post


Link to post
Share on other sites
[code]
<?php

echo "<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 :)

Share this post


Link to post
Share on other sites
[!--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]
<?php

echo "<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 / video

but 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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.