Jump to content


Photo

how to use link with $_GET


  • Please log in to reply
2 replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 24 May 2006 - 04:19 AM

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

<?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>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 Prismatic

Prismatic
  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 24 May 2006 - 04:26 AM

<?php

echo "<a href=".$_SERVER['PHP_SELF']."?blah=1\">play Video</a>";
echo "<a href=".$_SERVER['PHP_SELF']."?blah=2\">play Video</a>";

?>

Will do it :)

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 24 May 2006 - 04:37 AM

[!--quoteo(post=376559:date=May 24 2006, 04:26 AM:name=Prismatic)--][div class=\'quotetop\']QUOTE(Prismatic @ May 24 2006, 04:26 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
<?php

echo "<a href=".$_SERVER['PHP_SELF']."?blah=1\">play Video</a>";
echo "<a href=".$_SERVER['PHP_SELF']."?blah=2\">play Video</a>";

?>

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) View Post[/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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users