Hey, I got this
//Add Administrator
if (isset($_G.ET[admin])) {
$username=$_P.OST['username'];
$password=$_P.OST['password'];
$repeat_password=$_P.OST['repeat_password'];
$type=$_P.OST['type'];
if ($password == $repeat_password) {
$sql="INSERT INTO admin (username, password, type) VALUES ('$username','$password','$type')";
}else{
header("location:../add_administrator.php?password");
}
if (!mysql_query($sql,$con));
header("location:../administrators.php");
}
So I submit a form to add.php?admin it does stuff. It submits the stuff to the database ok. If the password is wrong it should go to ../administrators.php?password but it doesn't. It just goes to ../administrators.php I think it may have something to do with my if else.
Thanks in advance.



