This question already has an answer here:
I get "syntax error, unexpected end of file." I'm probably not using the if on line 7 correctly. If I remove line 7 8 and 9 I don't have an error. `It is like I'm missing a { or } somewhere there. Does the if have to be on it's own PHP line ? Thanks
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($_POST['LicenceNo']) && $_SESSION['MEMID'] == '') {
require ('sql_get_MNZID.php');
}else {
if(isset($_SESSION['Password']) && isset($_POST['Password'])){
if ($_SESSION['Password'] == $_POST['Password']):?>
<a href="index_login.php">New Page</a>
<?php endif; ?>
}
}
}else{
$_SESSION['MEMID'] = '';
$_SESSION['Password'] = '';
$_SESSION['MemName'] = '';
}
?>
Aucun commentaire:
Enregistrer un commentaire