already found out what the problem is, but i still dont know how to fix it. found out that everytime i click a button to submit a form, that's when the image starts not to show.
that's why everytime i login, when i get to the next page, the image is not there. so i tried to open a page other than the login page. when i opened it, the image was there. but when i click a button to sumbit the form, the image will not appear again..
guess u guys get the point already...
i used dreamweaver xp to develop my pages.
here's the code for main.php
<?php require_once('Connections/connection1.php'); ?>
<?php
// *** Start the session
session_start();
// *** Validate request to log in to this site.
$FF_LoginAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING']!="") $FF_LoginAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];
if (isset($HTTP_POST_VARS['username'])) {
$FF_valUsername=$HTTP_POST_VARS['username'];
$FF_valPassword=$HTTP_POST_VARS['password'];
$FF_fldUserAuthorization="TYPE";
$FF_redirectLoginSuccess="sendRequest.php";
$FF_redirectLoginSuccessUser="sendRequestUser.php";
$FF_redirectLoginFailed="sorry.php";
$FF_rsUser_Source="SELECT EMP_NUM, PWORD ";
if ($FF_fldUserAuthorization != "") $FF_rsUser_Source .= "," . $FF_fldUserAuthorization;
$FF_rsUser_Source .= " FROM requestor WHERE EMP_NUM='" . $FF_valUsername . "' AND PWORD='" . $FF_valPassword . "'";
mysql_select_db($database_connection1, $connection1);
$FF_rsUser=mysql_query($FF_rsUser_Source, $connection1) or die(mysql_error());
$row_FF_rsUser = mysql_fetch_assoc($FF_rsUser);
if(mysql_num_rows($FF_rsUser) > 0) {
// username and password match - this is a valid user
$MM_Username=$FF_valUsername;
session_register("MM_Username");
if ($FF_fldUserAuthorization != "") {
$MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization];
} else {
$MM_UserAuthorization="";
}
session_register("MM_UserAuthorization");
if (isset($accessdenied) && false) {
$FF_redirectLoginSuccess = $accessdenied;
}
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = false;
if ($MM_UserAuthorization=="System Administrator"){
header ("Location: $FF_redirectLoginSuccess");
} else{
header ("Location: $FF_redirectLoginSuccessUser");
}
exit;
}
mysql_free_result($FF_rsUser);
session_register("FF_login_failed");
$FF_login_failed = true;
header ("Location: $FF_redirectLoginFailed");
exit;
}
?>
<html>
<head>
<title>SPI Publisher Services Service Request Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="99%" border="0">
<tr>
<td height="93" colspan="3"><img src="pics/spi%20logo2.jpg" width="500" height="102"></td>
</tr>
<tr>
<td bgcolor="#000000">
<div align="center"></div></td>
<td width="72%" bgcolor="#000000"> <div align="center"><font color="#FFFFFF"><strong>Reference</strong></font></div></td>
<td width="4%" bgcolor="#000000"> <div align="center"><font color="#FFFFFF"></font></div></td>
</tr>
<tr>
<td> <div align="center"></div></td>
<td> <div align="center"><font color="#FFFFFF"></font></div></td>
<td> <div align="center"><font color="#FFFFFF"></font></div></td>
</tr>
<tr>
<td width="24%" rowspan="10" bordercolor="#CCCCCC" bgcolor="#99CCFF"> <form action="<?php echo $FF_LoginAction?>" method="POST" name="frmLogin" id="frmLogin">
<table width="75%" border="0" align="center">
<tr>
<td><div align="center"><a href="register.php">Register</a></div></td>
</tr>
<tr>
<td> <div align="center">Log-in</div></td>
</tr>
<tr>
<td> <div align="center">Username</div></td>
</tr>
<tr>
<td> <div align="center">
<input name="username" type="text" id="username2" size="15">
</div></td>
</tr>
<tr>
<td> <div align="center">Password</div></td>
</tr>
<tr>
<td> <div align="center">
<input name="password" type="password" id="password" size="15">
</div></td>
</tr>
<tr>
<td> <div align="center">
<input name="login" type="submit" id="login" value="Login">
</div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form></td>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
hope you can help me. 🙂