Reknot Posted March 23, 2007 Share Posted March 23, 2007 Okay, I got this small problem... I got a site with a video gallery. I have done it in an easy way; Done thumbnails and done a form in HTML witch I've assigned the input as and type="image". HTML code; <form method="post" target="videoiframe" action="http://reknot.no-ip.info:82/videoiframe.php"> <input name="id" type="image" src="_Thumbs/1a.jpg" class="vidthumbs" value="http://reknot..no-ip.info:82/Media/Filmer/Olsson/06/1.3gp"></form>Code in videoiframe.php ;<?php $id=$_POST['id'];echo "<object width=160 height=144 classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab> <param name=autoplay value=true> <param name=controller value=false> <embed src=".$id." width=160 height=144 autoplay=true controller=false pluginspage=http://www.apple.com/quicktime/download/> </embed> </object>";?>It works great in FF, but doent work in Internet explorer. If I "Show source" in my Iframe it shows "...<embed src= width=160 height=144" in IE. Like IE's PHP doest get the Value from HTML. Ive tried to send only numbers but it still doesn't work in IE. Any help, or other ways of doing it. I could get an Database with all the paths, but... yeah. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 24, 2007 Share Posted March 24, 2007 IE must not send a value with type=image. It will be better to use a link and $_GET instead of $_POST. <a href="videoiframe.php?id=<?php echo urlencode("http://reknot..no-ip.info:82/Media/Filmer/Olsson/06/1.3gp"); ?>" target="videoiframe"><img src="_Thumbs/1a.jpg" /></a>And then in PHP use $_GET instead of $_POST. Link to comment Share on other sites More sharing options...
Reknot Posted March 25, 2007 Author Share Posted March 25, 2007 AH, sweet! Thanks =)alltough "<a href="videoiframe.php?id=<?php echo urlencode("http://reknot..no-ip.info:82/Media/Filmer/Olsson/06/1.3gp"); ?>" target="videoiframe"><img src="_Thumbs/1a.jpg" /></a>"didn't exactly worked as intended. Had to fix to;"<a href="../../../videoiframe.php?id=http://reknot.no-ip.info:82/Media/Filmer/Olsson/06/1.3gp" target="videoiframe"><img src="_Thumbs/1a.jpg" /></a>"Thanks alot for the reply justsomeguyThe problem im faceing now is that my <object> code doesnt work. Object Code;<object width="170" height="150" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name=autoplay value=true> <param name=controller value=true> <embed src="<?php $id=$_GET["id"]; echo $id?>" width="170" height="150" autoplay=true controller=true pluginspage=http://www.apple.com/quicktime/download/> </embed></object>Again, it works perfect in firefox but IE wont play it. I think its a Parameter I've missed, am I right? It gets the ID correct but just wont play. Gets stuck with Quicktime logo with a question mark. Over it... Link to comment Share on other sites More sharing options...
MrAdam Posted March 25, 2007 Share Posted March 25, 2007 i can't see anything missing in the code, but perhaps one small thing has gotten corrupt or something... try this: <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="170" height="150" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="<?php print $_GET['id']; ?>"><param name="autoplay" value="true"><param name="controller" value="true"><embed src="<?php print $_GET['id']; ?>" width="170" height="150" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed></object> I'm assuming $_GET['id'] will include the file extension ? Link to comment Share on other sites More sharing options...
Reknot Posted March 26, 2007 Author Share Posted March 26, 2007 i can't see anything missing in the code, but perhaps one small thing has gotten corrupt or something... try this:<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="170" height="150" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="<?php print $_GET['id']; ?>"><param name="autoplay" value="true"><param name="controller" value="true"><embed src="<?php print $_GET['id']; ?>" width="170" height="150" autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed></object> I'm assuming $_GET['id'] will include the file extension ? Works Perfect, thanks alot for the help all =D but, 92 views and 2 replys pplz are lazy. Thanks alot MrAdam and justsomeguy Cheers on you both! Link to comment Share on other sites More sharing options...
Reknot Posted March 26, 2007 Author Share Posted March 26, 2007 Sorry for dubble post :s Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now