Dynamic page problem

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>

please reply

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…

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

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.

thanks man you rock problem solved :slight_smile: really thanks

how i can use single veriable in url

at this time its using two

dd&id

how i can use single veriable in url instead of two
http://utguyiui.webatu.com/index.php?page=[COLOR=“#FF0000”]dd&id[/COLOR]=k3g6iiAEAuyt1N3TPDF

any help for this that how i can use 1 veriable in url

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

confisued for this just look into this please

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’].

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!