I'm getting Parse error: syntax error, unexpected ';' on line 8.
<?php
$userid=$_POST['userid'];
$pswd=$_POST['pswd'];
if ($userid==("admin") & $pswd==("123"))
(
$_SESSION['userid'] = $userid;
$_SESSION['pswd'] = $pswd;
header("location:admin.php");
)
else echo 'Ops! Please try again.';
?>
here's line 8
$_SESSION['userid'] = $userid;
sorry, I know this can be just minor error, but I'm getting blind. thank you for helping!
Your code is not correct use this: