I have a form but it is hidden only when you click on a button in the nav called this function:
<script>
function verifLog(){
<?php
session_start();
if (isset($_SESSION['user'])){
echo "<script>
document.location.href ='logOn.php';
</script>";
} else {
echo "<script>
document.getElementById('enter').style.display='block';
</script>";
}
?>
}
</script>
But this is not working. Does anyone know the error here?