WRInaute accro
Bonjour à tous,
comment faut-il faire pour sécuriser la récupération d'une variable?...
Pour l'instant j'ai ça :
comment faut-il faire pour sécuriser la récupération d'une variable?...
Pour l'instant j'ai ça :
Code:
<?php
$g=$_GET["g"];
$g=htmlentities($g);
$g=preg_replace("/[^a-z0-9_ ]/i", "", $g);
echo $g;
?>