pspcrazy Posted September 26, 2008 Share Posted September 26, 2008 Hi I'm trying to make a iframe php script work. Basically when you go to this page: http://www.animecrazy.net/2008/08/31/bleach-episode-186/2/ it should automatically iframe http://www.megavideo.com/?v=M83EGPVC using the script mvhack.php. As it's being fed by the script: http://www.dramacrazy.net/mvhack.php?file=M83EGPVC But oddly it doesn't and it just goes to: http://www.megavideo.com/?v= . Is there something wrong with the code or Is there a setting on the server that is off that can be turned on to fix this or a work around? Need some help ASAP since my site's need this video script to fully function. Contents of mvhack.php: <html> <head> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> </head> <body onLoad="window.scrollTo(6,112)"> <iframe src ="http://www.megavideo.com/?v=" width="1000" height="1000" vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;"></iframe> </body> </html> Thanks a billion if you can figure this out! Link to comment https://forums.phpfreaks.com/topic/125909-iframe-hack-not-working-any-thing-wrong-with-it/ Share on other sites More sharing options...
F1Fan Posted September 26, 2008 Share Posted September 26, 2008 You're not passing the variable to the page. Here's you're code: <iframe src ="http://www.megavideo.com/?v=" width="1000" height="1000" vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;"></iframe> See the "http://www.megavideo.com/?v=" part? There's nothing after the v=. If you're trying to pass the file request variable to the page, you should change your code to this: <iframe src ="http://www.megavideo.com/?v=<?php echo $_REQUEST['file']; ?>" width="1000" height="1000" vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;"></iframe> That will pass the file variable to the megavideo site as the "v" variable. Link to comment https://forums.phpfreaks.com/topic/125909-iframe-hack-not-working-any-thing-wrong-with-it/#findComment-651231 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.