hi everyone. long time since I last posted here!
right I have a slight problem. I am attempting to make a login page/form that will the go to a verify.php script that will check it with a database and put it into a session. for the moment I am just trying to recover the variables from the form and putting them into a session (learning sessions you see).
here is the code for the verify.php:
session_start();
include ('conf.php');
if ($submit)
{
// Register the input with the value
$SESSION['username']=$POST['username']; //this is line 8
}
but it comes up with this error:
Parse error: parse error, unexpected T_STRING in /data/htdocs/fichier/login.php on line 8
Whats wrong with the $POST? I tried also doing:
$name = $POST['username'];
$SESSION['username']= $name;
btu that didn't work either.
I guess I'm just missing something, but it's really bugging me!
please help!
jon