Thread: iframe set on zshare using php
Results 1 to 1 of 1
Related
-
IFrame in PHP? Forum: PHP Forum
Replies: 1 -
iframe Forum: HTML Forum
Replies: 4 -
Php and Iframe Forum: PHP Forum
Replies: 3 -
iframe Forum: HTML Forum
Replies: 2 -
IFRAME Forum: HTML Forum
Replies: 14
-
11-02-2008, 06:13 AM #1
iframe set on zshare using php
hi guys,
i have a problem with my code on iframe
the idea is to framed the player from zshare by getting its url ID
Here is the php code from a file zs.php
<?php
function ValidateID($ID='')
{
return preg_match('#^[0-9a-z]{1,10}$#i',$ID);
}
$MovieID = $_REQUEST['id'];
if(ValidateID($MovieID))
{ //Only show if the ID is valid to prevent injection
?>
<iframe style='margin-top: 420px' onLoad='window.scrollTo(6,532)' src ='http://www.zshare.net/video/?v=<?php echo $MovieID; ?>' width='1000' height='1000' vspace='0' hspace='0' allowtransparency='true' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' style='border:0px;'></iframe>
<?php
}
?>
the url is:..zshare.net/video/506154215f637b10/
here is the code i place in my main page:
<IFRAME vspace="0" hspace="0" allowtransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;" width="482" height="414" SRC="http://www.teletambayan2nd.com/forums/zs.php?id=506154215f637b10"></IFRAME>
i successfully used this code to different url using their ID's
i dont know if i am using the right ID or encoding problem
the end result is blank
please help....
charlie
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum