Find jobs - Vasectomy Reversal - Barclaycard Credit Card - Submit Articles - Debt Consolidation

PDA

View Full Version : Request Vlaue


BABUPATHAN
Jun 26th 2008, 11:02 am
i am using a php script to get youtube values i am not understanding how can i run videos on browser when user click the video image or video title name

the hyper link which php generate for image click or title click is:
<?="<a href=\"player".".php?".$value['id']."\"><img src=\"".$value['thumbnail_url']."\" border=\"0\"></a>";?>


and my player.php use these codes to play video:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/watch?v=$value['id']">
</param><param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/watch?v=$value['id']" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350">
</embed>



but http://www.youtube.com/watch?v=$value['id']" these line on my player.php are not getting youtube video id.

any one can help me how can i get video id of that video which user want to play on my player.php page

Danltn
Jun 26th 2008, 11:12 am
Try $value = $_GET;
This will set $value['id'] = $_GET['id'] if it's filled in.

It's advised you run some validation on it though to stop XSS attacks.

Also, make sure your within PHP for the player.php bit, looks like you aren't.