Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
Wednesday, November 3, 2010
Display selected youtube videos using PHP
<html>
<head>
<title>Select Lady Gaga music from youtube</title>
</head>
<h1> Select Lady Gaga music from youtube</h1>
<body>
<?php $vid="EVBsypHzF3U"; ?>
<form name="myform" action="<?php $vid=$_POST['youtube']; ?>" method="POST">
<input type="radio" name="youtube" value="EVBsypHzF3U" CHECKED /> Lady Gaga - Telephone ft. Beyoncé <br />
<input type="radio" name="youtube" value="qrO4YZeyl0I" /> Lady Gaga - Bad Romance <br>
<Input type = "Submit" Name = "Submit1" VALUE = "Select Video from a Radio Button">
</form>
<object width="650" height="600"><param name="movie" value="http://www.youtube.com/v/<?php echo $vid; ?>">
</param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<?php echo $vid; ?>"
type="application/x-shockwave-flash" wmode="transparent" width="650" height="600"></embed></object>
</body>
</html>
The results can be seen from HERE
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment