Hi All,
I am very new to PHP and I need some help if you could.
I have a login script that works well. It calls a php page called xyz.php once the user logs in sucessfully.
Based on the $username I would like the person directed to a certain page.
Here's the script I wrote to put at the top of the xyz.php page but it does not work, please help me.
<?php
if ($username = "Green"){
header ("Location: gr.php");
}
elsif($username = "Sud"){
header ("Location: sud.php");
}
?>
I get this error message:
Parse error: parse error, unexpected '{' in /var/www/html/client/xyz.php on line 5