Jump to content

how to use link with $_GET


redarrow

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]
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.