Previous Article Request.Form (How to request information from a form) |
Request.Form (Allow your visitors to play YouTube Video's in your ASP Page) |
Next Article ASP Classic Looping Select Statement |
Coding Article #: 5 - Published On: February 18, 2010 @ 12:52:16 PM - Last Updated on: July 13, 2012
This article has been Favorited 14 timesJoin today, and add this to your favorites.
Share With Friends (Updated 6-8-2010)
Supported Files
No Files for this Article.
No Files for this Article.
This tutorial will show you how to allow your visitors to play YouTube video's within' your page.
Create your Form first, then create your ASP Variables.
What you want to concentrate on is the YouTube embedded code.
You are looking at this:
This places the input value into the code to embed the video link.
This is the ID Number that is given to the Video when it is uploaded to YouTube.
Create your Form first, then create your ASP Variables.
What you want to concentrate on is the YouTube embedded code.
You are looking at this:
<%=UTube%>
This places the input value into the code to embed the video link.
This is the ID Number that is given to the Video when it is uploaded to YouTube.
<form method="post" action="5.asp">
<input type="text" name="YouTube" />
<input type="submit" name="Submit" value="Play YouTube Video" />
</form>
<%if request.Form("Submit")="Play YouTube Video" then
UTube = trim(request.Form("YouTube"))
UTube = replace(UTube, "'","'")
%>
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/<%=UTube%>&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/<%=UTube%>&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>
<%end if%>
Post to Facebook about: Request.Form (Allow your visitors to play YouTube Video's in your ASP Page)