oops, spoke too soon.
Bizarrely, it seemed to work at first, but now, it doesn't.
I know the email address I key in is correct, and if i put the redirect path after "successRedirect", it works.
If I change it to the code below, I get the failed message
<?php
if(isset($_POST["Check"]) || isset($_POST["Check_x"])){
$WA_Auth_Parameter = array(
"connection" => $PowerCMSConnection,
"database" => $database_PowerCMSConnection,
"tableName" => "tblmemberscontact",
"columns" => explode($WA_Auth_Separator,"MemberEmailAddress"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["emailaddress"]))?$_POST["emailaddress"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text"),
"sessionColumns" => explode($WA_Auth_Separator,"MemberContactID".$WA_Auth_Separator."MemberID"),
"sessionNames" => explode($WA_Auth_Separator,"MemberContactID".$WA_Auth_Separator."MemberID"),
"successRedirect" => "",
"failRedirect" => "/events/booktickets_check.php?EventID=".$_GET['EventID']."&failed=true",
"gotoPreviousURL" => FALSE,
"keepQueryString" => FALSE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
<?php
if(isset($_POST["Check"]) || isset($_POST["Check_x"])){
header("Location: /events/booktickets.php?EventID=".$_GET['EventID']."&MemberID=".$_SESSION['MemberID']);
}?>