Gah! Your PHP Code is an absolute disaster, sorry to say, and it hurts my eyes. This might help:
[php]<?php
// Here is the code from my processing page that redirects it:
$user = $_REQUEST['username'];
$pass = $_REQUEST['password'];
$logintype = $_REQUEST['logintype'];
// Gah! ALWAYS, when using preset variables, use
// single quotes inside brackets. PHP is more friendly,
// that way

Also, are you trying to get this data
// from a form? You might want to change these to POST,
// and set the form in your HTML page to be POST, as well,
// but for now I'll just leave them as they are.
if($pass == '') {
// There is no point using preg if you're going to search for
// a-z and A-Z, it's easier to just use if($pass == '').
$error = 1;
};
if($error == 0) {
if ($logintype == 'admin') {
header('Location: ../LoginAdmin.php?loginresult=badlogin');
// include("../LoginAdmin.php" );
// Why are you including a page here? You've already
// been redirected to the other page!
exit;
// The 'exit;' command does not have parameters, therefore
// do not put parenthesis () after it.
};
exit;
};
?>[/php]If you are not being redirected to that page,
you are doing something wrong, and by the looks of your PHP code, you are.
Also, if this is a user authentication form, I'd suggest using a database with usernames and passwords, simply testing if the user has entered a password is not secure at all, especially if you then redirect them to an Administration page. Troy has some good tutorials on the subject, you might want to get in touch with him.
Also, zippee, it is pointless to end your PHP script just so that Javascript can redirect you to a page, especially if PHP can do it for you. The correct way to redirect someone to a page:[php]<?php
header('Location: http://www.google.com/');
?>[/php]will redirect you to Google. This header(); function MUST be executed before any other headers are, otherwise you will get an error.