Hi everyone, I'm a noobie to PHP and attempting to develop a login page via a form.
However I keep getting the following error
Parse error: syntax error, unexpected T_STRING in
my code is as follows
<?php
session_start();
/*get the user/pwd from form in this session*/
$_SESSION[‘username’] = $_POST[‘uname’];
$_SESSION[‘userpass’] = $_POST[‘pphrase’];
$_SESSION[‘authuser’] = 0;
//Check username and password information
if (($_SESSION[‘username’] == ‘demo’) and
($_SESSION[‘userpass’] == ‘somerndstring’)) {
$_SESSION[‘authuser’] = 1;
}
else {
echo(“Sorry you don’t have permission to view this page...”);
exit();
}
?>
I'm testing the code on my site online and that is where I keep getting the error. it points to line 16 which is the echo statement but I'm at a lost here...