thesavior
01-04-2006, 04:06 AM
This is pretty much what i want to do:
if ($username == $adminuser);
{
if ($password == $adminpass);
{
include 'admin/adminstart.php';
}
else
{
echo $loginerror;
}
}
else
{
echo $loginerror;
}
However i don't think this is the easiest way to do so. Im also getting errors. If someone can tell me the easiest way to do the same thing, i would be very happy. Thanks in advance!
*edit added below*
Im thinking maybe something like:
if ($username == $adminuser) and ($password == $adminpass);
{
include 'admin/adminstart.php';
}
else
{
echo $loginerror;
}
but im getting the and statment wrong.
if ($username == $adminuser);
{
if ($password == $adminpass);
{
include 'admin/adminstart.php';
}
else
{
echo $loginerror;
}
}
else
{
echo $loginerror;
}
However i don't think this is the easiest way to do so. Im also getting errors. If someone can tell me the easiest way to do the same thing, i would be very happy. Thanks in advance!
*edit added below*
Im thinking maybe something like:
if ($username == $adminuser) and ($password == $adminpass);
{
include 'admin/adminstart.php';
}
else
{
echo $loginerror;
}
but im getting the and statment wrong.