Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End what is wrong in these codes php, sql Re: what is wrong in these codes php, sql

#135394
unasAquila
Participant

A scaled down version of what you are doing
`index.php`

session_start();
if(isset($_SESSION)){
$errors = $_SESSION;
print_r($errors);
}else{
echo ‘no error messages yet’;
}
?>


Test




`login.php`

session_start();
if(empty($_POST)) {
$error = ‘You have supplied a wrong Information’;
$_SESSION = $error;
header(‘Location: index.php’);
}
?>