Login not working after php updated
<p>My admin panel of my website is no longer working after the php updated of my hosting</p>

<p>here are the files code that looks very old so i wonder how to edit its code.</p>

<p>1) login.php (it is just simple form)</p>

<pre><code>&lt;form method="post" name="login" id="login" action="admin.php"&gt;
Username : &lt;input name="loginid" id="loginid" type="text"&gt;
Password : &lt;input name="password" id="password" type="password"&gt;
&lt;/form&gt; 
</code></pre>

<p>2) It send informations to admin.php (here i think there is something been no longer works)</p>

<pre><code>&lt;?PHP
session_start();
require_once("../config.php"); // db connection

$loginid = $HTTP_POST_VARS['loginid'];
$password = $HTTP_POST_VARS['password'];

$sql= "select * from settings where admuser='$loginid' and admpass='$password'";
$result = mysql_query($sql) or die("query failed: $sql");

if($line=mysql_fetch_array($result)){

session_register("loginid");
header("Location: home.php ");
exit;

}else{

$msg= "Login Failed";
session_register('msg');
header("Location: login.php ");
exit;

}
?&gt;
</code></pre>

<p>However it is very simple as my knowledge in php is very small and old but it didn't worked ! so any idea </p>

<p>Note : PHP Version 5.2.17 | register_globals = On (also not working if it Off)</p>

<p>Thanks for help</p>
