Form >



Logged in!"; } else { echo "

Not logged in!

"; } if(isset($_POST['message'])) { if($_SESSION['CSRFToken'] === $_POST['CSRFToken']){ echo "ok csrft"; }else{ echo "Inte ok csrft"; } $safeName = filter_input(INPUT_POST, 'name',FILTER_SANITIZE_FULL_SPECIAL_CHARS); $safeMassage = filter_input(INPUT_POST, 'text',FILTER_SANITIZE_FULL_SPECIAL_CHARS); echo "

Name - " . $safeName . "

"; echo "

Massage - " . $safeMassage . "

"; } else { echo "

No message!

"; } ?> Login