This topic is locked

Event Script

11/30/2006 2:55:27 AM
PHPRunner General questions
L
lawfour author

I am trying to use two event scripts at the same time but I can't figure out how to combine can someone help.
the top part works, the problem is with the redirect I get this error ( Parse error: parse error, unexpected $ )
function AfterSuccessfulLogin()

{

//** Custom code ****

// put your custom code here
global $data;

$_SESSION["Investigator"] = $data["Investigator"];

$_SESSION["Room"] = $data["Room"];

$_SESSION["CustomerNo"] = $data["CustomerNo"];

$_SESSION["Email"] = $data["Email"];

$_SESSION["Department"] = $data["Department"];

$_SESSION["CC Expires"] = $data["CC Expires"];

$_SESSION["Phone"] = $data["Phone"];

$_SESSION["PO"] = $data["PO"];

$_SESSION["PO Expires"] = $data["PO Expires"];
//** Redirect to another page ****



if ($_SESSION["GroupID"]=="Admin")

{

header("Location: _OrderForm_add.php");

exit();

}

else if ($_SESSION["GroupID"]=="User")

{

header("Location: _OrderForm_add.php");

exit();

}

else if ($_SESSION["GroupID"]=="Airgas")

{

header("Location: _OrderForm_list2.php");

exit();

}

J
Jane 11/30/2006

Larry,
you forget to close the brackets:

function AfterSuccessfulLogin()

{

//** Custom code ****

// put your custom code here
global $data;

$_SESSION["Investigator"] = $data["Investigator"];

$_SESSION["Room"] = $data["Room"];

$_SESSION["CustomerNo"] = $data["CustomerNo"];

$_SESSION["Email"] = $data["Email"];

$_SESSION["Department"] = $data["Department"];

$_SESSION["CC Expires"] = $data["CC Expires"];

$_SESSION["Phone"] = $data["Phone"];

$_SESSION["PO"] = $data["PO"];

$_SESSION["PO Expires"] = $data["PO Expires"];
//** Redirect to another page ****
if ($_SESSION["GroupID"]=="Admin")

{

header("Location: _OrderForm_add.php");

exit();

}

else if ($_SESSION["GroupID"]=="User")

{

header("Location: _OrderForm_add.php");

exit();

}

else if ($_SESSION["GroupID"]=="Airgas")

{

header("Location: _OrderForm_list2.php");

exit();

}

}

L
lawfour author 11/30/2006

Well Jane you did it again, another problem solved, I am that much closer to putting my DB into circulation.

Xlinesoft has the best tech support I've come across in a long time. Thanks so much for your patients.
Larry

Larry,

you forget to close the brackets: