3
I have the following code:
$nome = $_POST['nome'];
$ip = preg_replace("/[^a-zA-Z0-9\.]/", "", $_POST['ip']);
$porta = preg_replace("/[^0-9\s]/", "", $_POST['porta']);
$site = preg_replace("/[^a-zA-Z0-9\.]/", "", $_POST['site']);
I’m treating some variables with the exception of one, because she needs to accept accentuation, as I do the treatment of this variable correctly to avoid SQL Injection
? And make her accept accents, strokes and brackets?