Need Help With My Login Script If someone could look this script over in Programming Posted April 23, 2010 · Report reply Maybe this can help,or is there something wrong with this??require.inc.php global $username;require 'dconn.php';session_start();$username = @$_SESSION["username"];$connection = mysql_connect($db_server, $db_user, $db_pass) or die(mysql_error());mysql_select_db($db_name, $connection) or die(mysql_error());.....variables.....function footer() { ?> <CENTER> <table><tr> <td class="font" align=center><a href="start.php?option=contact">-contact us-</a> <a href="privacy.htm" target="_NEW">-privacy policy-</a> <a href="spam.htm" target="_NEW">-spam policy-</a><br></td></tr> </table> </CENTER> <?}?> after this line: header("Location: start.php?option=main"); put:exit;You need to end the parsing of the script so it doesn't always send you to index.PHP.net: header - Manual
Need Help With My Login Script If someone could look this script over
in Programming
Posted · Report reply
after this line:
header("Location: start.php?option=main");
put:
exit;
You need to end the parsing of the script so it doesn't always send you to index.
PHP.net: header - Manual