DeathStar Posted April 2, 2007 Share Posted April 2, 2007 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 More sharing options...
only one Posted April 2, 2007 Share Posted April 2, 2007 lol simple html, you need to give your iframe a name... Link to comment https://forums.phpfreaks.com/topic/45272-not-working/#findComment-220069 Share on other sites More sharing options...
DeathStar Posted April 2, 2007 Author Share Posted April 2, 2007 nvm i used include ""; Link to comment https://forums.phpfreaks.com/topic/45272-not-working/#findComment-220072 Share on other sites More sharing options...
only one Posted April 2, 2007 Share Posted April 2, 2007 =P Link to comment https://forums.phpfreaks.com/topic/45272-not-working/#findComment-220073 Share on other sites More sharing options...
papaface Posted April 2, 2007 Share Posted April 2, 2007 lol simple html, you need to give your iframe a name... You dont. Make sure its not your virus/firewall software. I know my pc wont display iframes because of mine. Link to comment https://forums.phpfreaks.com/topic/45272-not-working/#findComment-220074 Share on other sites More sharing options...
DeathStar Posted April 3, 2007 Author Share Posted April 3, 2007 So kaspersky 6.0 Anti-Virus? It display's everything.. Its to do with your browser.. Ill experiment with this in dreamweaver a bit.. Link to comment https://forums.phpfreaks.com/topic/45272-not-working/#findComment-220388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.