View Full Version : I can't display my frameset html page with php, can someone help me

03-18-2007, 02:03 PM
here is my coding, i want to display the page which has frameset function, but it couldn... is there somethign missing with my coding?and i try to display the text"hi" as below, it can~.. can someone help me to solve? thanks a lot~~~~~~

if (isset($HTTP_POST_VARS['adminname']) && isset($HTTP_POST_VARS['adminpass']))
$adminname = $HTTP_POST_VARS['adminname'];
$adminpass = $HTTP_POST_VARS['adminpass'];
$db_conn = mysql_connect('localhost','root','');

$query = "select * from admins where adminname='$adminname' and adminpass='$adminpass' ";
$result = mysql_query($query, $db_conn)or die(mysql_error());

if (mysql_num_rows($result) > 0)
$_SESSION['valid_admin'] = $adminname;

echo 'Welcome '.$_SESSION['valid_admin'],' <br/>';
<html> HI
<frameset rows="80,*" frameborder="no" border="0" framespacing="0">
<frame src="navi.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame">
<frame src="listadmin.php" name="mainFrame" id="mainFrame" title="mainFrame">

if (isset($adminname)){
echo 'Could not log you in';



03-18-2007, 03:38 PM
Your code makes use of the depreciated HTTP_xxxx_VARS, which can be disabled in PHP5. Either check your web server log for errors and/or put the following lines in after your first <?php tag -

ini_set ("display_errors", "1");