Hi
I have a windows 2003 server running php 4.3.4. I have several sites running php without problem but a new one upoaded today will not allow me to login. When I use the login page it just refreshes without login in.
The code on the login page is this:
if(isset($_POST[s2]))
{
$MyUsername1 = strip_tags($_POST[username1]);
$MyPassword1 = strip_tags($_POST[password1]);
if(empty($MyUsername1) || empty($MyPassword1))
{
$MyError = "<center><font color=red size=2 face=verdana><b>All fields are required!</b></font></center>";
}
else
{
//check the login info if exists
$q1 = "select * from weblinks_admin where AdminUsername = '$MyUsername1' and AdminPassword = '$MyPassword1' ";
$r1 = mysql_query($q1) or die(mysql_error());
if(mysql_num_rows($r1) == '1')
{
$a1 = mysql_fetch_array($r1);
$_SESSION[AdminID] = $a1[AdminID];
header("location:index.php");
exit();
}
}
}
Can someone point me int the right direction, is it a code problem or an IIS 6 setting that I have wrong, and how do I go about tracking down the problem.
As you can proibably guess, my experience with PHP is very limited and I am just looking for some pointers.
I have checked this sites settings against other php site I have running and can not see any differences.
Thanks in advance