1
I have a form but it is hidden only when clicking a button located on the Nav is called that 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 isn’t working. Someone knows the mistake that happens here?