aflaton - 2011-02-24 08:47:24
Hey All friends..
I am new Here.. I want to get help... in:
getting vedio as embad from youtube by below method I try but fields..
1. I create an html form with 1 input name as url if user enter the youtube url in it and hit submit the url should retun in index page as embad vedio.. but still I am fialed to do...
please any one can direct to me to place or advise me in coding...
my php code" (Process.php)
[code]
<?php
$youtubeurl= $_POST["url"];
$width="400";
$height="400";
?>
[/code]
Form.html
[code]
<form name="youtube" method="post" action="process.php">
<input name="url" type="text" />
<input name="submit type="submit" value="add" />
</form>
[/code]
Embad place in form.html after adding url.
[code]
<object width="<?php echo $width; ?>" height="<?php echo $height; ?>" data="<?php echo $youtubeurl; ?>" type="application/x-shockwave-flash">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="wmode" value="transparent" />
<param name="movie" value="<?php echo $youtubeurl; ?>" />
<embed src="<?php echo $youtubeurl; ?>" type="application/x-shockwave-flash" width="<?php echo $width; ?>" height="<?php echo $height; ?>" allowscriptaccess="never" allownetworking="internal" wmode="transparent" />
</object>
[/code]