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
- Using Cron Job to process PHP scripts
- job interview questions (1)
- PHP connect IBM db2 database in XAMPP
- Set up a child account and set screen time limit in Windows 8
- Datatable export excel wraptext and newline
- Install PHPMailer 5.2.4 and use smtp gmail
- PHP - Export Content to MS Word document
- Powerful js library datable to export table in pdf, excel, sorting, freezing column and table header fixed (sticky)
- Sweet Alert JS library - beautiful replacement of JavaScript Alert
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