bitz
March 21, 2013, 5:38pm
21
please look at this http://utguyiui.webatu.com/index.php?page=dd
i put this code in dd.php
and then access this with $_GET[‘id’]
but still not know where i’ll put the id of dm
bcz if i use this like http://utguyiui.webatu.com/index.php?page=dm id
then it doesn’t access the
<center><div><object width="700" height="530"><param name="movie" value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
Take your html and replace [param] with the use of your $_GET[‘id’] variable… I’m not sure how I can state that any clearer…
bitz
March 21, 2013, 5:49pm
24
this is my index.php
<?php
$p = $_GET['page'];
$page = "sub/".$p.".php";
if(file_exists($page))
include($page);
elseif($p=="")
echo "This is Home Page";
else
echo "what are you looking for! ?";
?>
</div>
i have a folder sub , in sub i make a page dd.php
in dd.php i put this
<center><div><object width="700" height="530"><param name="movie" value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1" type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true" allowScriptAccess="always"></embed></object></div>
then my url will be http://utguyiui.webatu.com/index.php?page=dd
now it only show me flash player how param will access the id from url and where i’ll use the id in url
You need two variables ?page=dd&id=??? where ??? is the id for the swf file.
Then in your dd.php replace all [param] with <?php echo filter_var($_GET[‘id’], FILTER_SANITIZE_STRING); ?>
bitz
March 21, 2013, 6:02pm
26
what about this
echo'
<iframe width="560" height="315" src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0" allowfullscreen></iframe>';
What about it? That looks to have nothing to do with your dd.php file.
bitz
March 21, 2013, 6:32pm
28
thanks man you rock problem solved really thanks
bitz
March 21, 2013, 7:10pm
29
how i can use single veriable in url
at this time its using two
dd&id
bitz
March 21, 2013, 7:22pm
30
bitz
March 21, 2013, 7:29pm
31
any help for this that how i can use 1 veriable in url
bitz
March 21, 2013, 10:30pm
32
how i can use single veriable in url instead of double
http://utguyiui.webatu.com/index.php?page=[COLOR=#FF0000]dd&id[/COLOR]=k3g6iiAEAuyt1N3TPDF
bcz this url is using single veriable http://veedio.info/dailymotion.php?[COLOR=#FF0000]url[/COLOR]=k3g6iiAEAuyt1N3TPDF
or what will be the code to get id=523632 from url for {param}
<center><div><object width="700" height="530"><param name="movie"
value="http://www.dailymotion.com/swf/{param}&v3=1&related=1"></param><param
name="allowFullScreen" value="true"></param><param name="allowScriptAccess"
value="always"></param><embed src="http://www.dailymotion.com/swf/{param}&v3=1&related=1"
type="application/x-shockwave-flash" width="700" height="530" allowFullScreen="true"
allowScriptAccess="always"></embed></object></div>
i want to get id from url for {param}
http://veedio.info/dailymotion.p[COLOR=#0000ff]hp?[/COLOR] url =k3g6iiAEAuyt1N3TPDF
it should be something like this <?php echo _var($_GET[‘id’] ?>
bcz <?php echo filter_var($_GET[‘id’], FILTER_SANITIZE_STRING); ?> this work for 2 veriables
bitz
March 21, 2013, 10:41pm
33
confisued for this just look into this please
bitz
March 21, 2013, 10:55pm
34
how we can write this with open and close tag of php
<iframe width=“560” height=“315” src=“http://www.youtube.com/embed/‘.$_GET[‘url’].’ ” frameborder=“0” allowfullscreen></iframe>
bcz its using .$_GET[‘url’].
bitz
March 21, 2013, 11:05pm
35
how we can write this with open and close tag of php
<iframe width="560" height="315"
src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0"
allowfullscreen></iframe>
bcz its using .$_GET[‘url’].
it would be like this ?
<?php
<iframe width="560" height="315"
src="http://www.youtube.com/embed/'.$_GET['url'].'" frameborder="0"
allowfullscreen></iframe>
?>
can we use this like
<iframe width="560" height="315"
src="http://www.youtube.com/embed/'<?php .$_GET['url']. ?>'" frameborder="0"
allowfullscreen></iframe>
please correct me
Are you trying to do like this:
Create a page “video.php ”
<?php
$id = $_GET["id"];
echo "<iframe width='560' height='315' src='http://www.youtube.com/embed/$id' frameborder='0' allowfullscreen></iframe>";
?>
If you want to access any youtube video with just id access it like below url:
http://example.com/video.php?id=vW4IzAjbqCU
I hope this will be helpful for you!