rofl90 Posted March 7, 2008 Share Posted March 7, 2008 heres my login.php <?php error_reporting(E_ALL); $dbhost = 'x'; $dbuser = 'x'; $dbpass = 'x; $dbname = 'x'; mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error()); mysql_select_db($dbname); $message = $_GET['a']; if(!empty($message)) { echo $message; } else { ?> <form action="validate.php" method="post"> <fieldset> <label>Your IP is <?php echo $_SERVER['REMOTE_ADDR']; ?>, and has been logged, unauthorised attempts to access will be logged, and steps will be taken. <br /></label> <br /> <fieldset> <legend>Name</legend> <input type="text" name="userid" id="user" /> </fieldset> (not case sensitive eg cHaRLiE becomes 'Charlie') <br /> <br /> <fieldset><legend> Password</legend> <input type="password" name="password" id="password" /> </fieldset> (cAsE sEnSiTiVe) <br /> <br /> <input type="submit" id="submit" value="Login" /> <input name="ip" type="hidden" id="hidden" value="<?php $ip = $_SERVER['REMOTE_ADDR']; echo $ip; ?>" /> <br /> <br /> Backend time out currently set at: <?php $result = mysql_query("SELECT * FROM settings") or die(mysql_error()); $row = mysql_fetch_array($result); $timing = $row['timeout']; echo $timing / 60; ?> minutes.<br /> </fieldset></form> <?php } ?> it is like login.php?a=Login has failed Quote Link to comment Share on other sites More sharing options...
phpnoobie9 Posted March 7, 2008 Share Posted March 7, 2008 Change: $dbpass = 'x; to $dbpass = 'x'; Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted March 7, 2008 Share Posted March 7, 2008 are you using sessions? Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted March 7, 2008 Share Posted March 7, 2008 Missing end quote on <?php $dbpass = 'x; ?> Ken Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 7, 2008 Author Share Posted March 7, 2008 thats not in the real thing and yes im using sessions. Quote Link to comment Share on other sites More sharing options...
rofl90 Posted March 7, 2008 Author Share Posted March 7, 2008 fixed, there was a var and get ain the parent file 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.