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>"; ?> Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
DeathStar Posted April 2, 2007 Author Share Posted April 2, 2007 nvm i used include ""; Quote Link to comment Share on other sites More sharing options...
only one Posted April 2, 2007 Share Posted April 2, 2007 =P Quote Link to comment 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. Quote Link to comment 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.