Thanks alan, It worked, but if I want to upload the url to be able to display 
in the website, How do I change the "whatch?" to a foward slash and the "=" 
sign to a forward slash knowing that I am going to upload?

Thanks for your help I am a junior an it's important to me get this right.

cheers

Denis


________________________________
From: Allan <[email protected]>
To: [email protected]
Sent: Thursday, 12 February, 2009 10:12:15 PM
Subject: [phpug] Re: add youtube video into my website by adding url

Have a look at a YouTube URL - 
http://www.youtube.com/watch?v=eKD1C6V4wgc

Then have a look at the embed code -
<object width="425" height="344"><param name="movie" 
value="http://www.youtube.com/v/eKD1C6V4wgc&hl=en&fs=1";></param><param 
name="allowFullScreen" value="true"></param><param name="allowscriptaccess" 
value="always"></param><embed 
src="http://www.youtube.com/v/eKD1C6V4wgc&hl=en&fs=1"; 
type="application/x-shockwave-flash" allowscriptaccess="always" 
allowfullscreen="true" width="425" height="344"></embed></object>

Did you happen to have a look at what the value contains? It basically strips 
out the "watch?" bit without the quotes and replaces the equals sign with a 
forward slash / and thrown into two value fields. 

Hope that helps

--
Thank you and regards,


Allan

Mobile : 021 159 3615
Blog: http://inconfused.com




      Easy recipes for Christmas entertaining on Yahoo!Xtra Lifestyle- 
http://nz.lifestyle.yahoo.com/food-recipes
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to