Jump to content

<iframe> not working..


DeathStar

Recommended Posts

hi there.

Im making an script that would call files when its needed.

I store it in a $loc variable.

For some reason the page "menu.php" is not displaying.

 

here is my script:

<?php
session_start();
if (!$_GET['file']){
$loc = "menu.php";}
else{
$loc = $_GET['file'];}
echo "<html>
<head>
<title>Files</title>
<style type='text/css'>
<!--
a {
font-size: small;
color: #FF0000;
font-family: Arial, Helvetica, sans-serif;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: underline;
color: #990000;
}
a:active {
text-decoration: none;
color: #990033;
}
h1,h2,h3,h4,h5,h6 {
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: #000000;
}
body,td,th {
color: #FFFFFF;
font-size: medium;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style1 {
font-size: small;
font-style: italic;
}
.style2 {font-size: small}
-->
</style></head>

<body>
<center><h2>File Panel v1</h2></center><br />

<table width='100%' height='100%' border='5' cellpadding='0' cellspacing='0' bordercolor='#333333'>
  <tr>
    <td><div align='center'>
      <p><a href='#'>Index</a></p><br />
      <iframe height='600' width='600' src='$loc'></iframe>
      <br />
      <p class='style1'><span class='style2'>Script Name</sup></span> </p>
    </div></td>
  </tr>
</table>
</body>
</html>";
?>

Link to comment
https://forums.phpfreaks.com/topic/45272-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.