0
voici ce que j'ai à ce jour - je vraiment besoin d'interdire toutes les balises d'être entré comme il est comme un livre d'or, mais cela ne semble pas fonctionner:comment mettre en œuvre FILTER_SANITIZE_SPECIAL_CHARS
<?php
$txt = $_POST['txt'];
//the data
$data = "
$txt";
//my attempt to implement a filter
var_dump(filter_var($data,FILTER_SANITIZE_SPECIAL_CHARS));
//open the file and choose the mode
$fh = fopen("users.txt", "a");
fwrite($fh, $data);
//close the file
fclose($fh);
header('Location: http://www.google.com/');
?>
ahh, merci! – John