<?php

include("config.php");

$_POST["nome"] = trim(strip_tags ($_POST["nome"]));
$_POST["email"] = trim(strip_tags ($_POST["email"]));
$_POST["url"] = trim(strip_tags ($_POST["url"]));
$_POST["citta"] = trim(strip_tags ($_POST["citta"]));
$_POST["messaggio"] = trim(strip_tags ($_POST["messaggio"]));


$errore=false;
if (isset($_POST["nome"])):
if ($_POST["nome"]==""):
$errore=true;
else:

Secondo voi contiene errori?

if (substr($_POST["nome"],0,1)=="\\"):
$errore=true;
endif;
endif;
else:
$errore=true;
endif;

if (isset($_POST["messaggio"])):
if ($_POST["messaggio"]==""):
$errore=true;
else:

if (substr($_POST["messaggio"],0,1)=="\\"):
$errore=true;
endif;
endif;
else:
$errore=true;
endif;