I am haveing problems trying to get access to another frame from a frame that runs php. The code is as follows essentially;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>set</title>
</head>
<frameset rows="50%,50%">
<frame name="upper" src="upper.html ">
<frame name="lower" src="http://localhost/test/lower.php">
</frameset>"
</html>
//upper.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>upper</title>
</head>
<body>
<P>upper</p>
</body>
</html>
//lower.php
<html>
<head>
<title>lower</title>
</head>
<body>
<?php
print("lower<br >\n");
print("<script language=\"Java Script\">\n");
print("document .write(parent.f rames.length);\ n");
print("parent.f rames[\"upper\"].document.open( );\n");
print("parent.f rames[\"upper\"].document.write ln(\"test2\");\ n");
print("parent.f rames[\"upper\"].document.close ();\n");
print("</script>\n");
?>
</body>
</html>
Is there anyone that can tell me what I am doing wrong and if there is anything extra you have to do to be able to get a php file to access another frame under the same parent as this setup is getting denied access errors from the lower.php file part.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>set</title>
</head>
<frameset rows="50%,50%">
<frame name="upper" src="upper.html ">
<frame name="lower" src="http://localhost/test/lower.php">
</frameset>"
</html>
//upper.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>upper</title>
</head>
<body>
<P>upper</p>
</body>
</html>
//lower.php
<html>
<head>
<title>lower</title>
</head>
<body>
<?php
print("lower<br >\n");
print("<script language=\"Java Script\">\n");
print("document .write(parent.f rames.length);\ n");
print("parent.f rames[\"upper\"].document.open( );\n");
print("parent.f rames[\"upper\"].document.write ln(\"test2\");\ n");
print("parent.f rames[\"upper\"].document.close ();\n");
print("</script>\n");
?>
</body>
</html>
Is there anyone that can tell me what I am doing wrong and if there is anything extra you have to do to be able to get a php file to access another frame under the same parent as this setup is getting denied access errors from the lower.php file part.
Comment