";
pt_register('POST','nome');
pt_register('POST','morada');
pt_register('POST','codigopostal');
pt_register('POST','cidade');
pt_register('POST','concelho');
pt_register('POST','teltlm');
pt_register('POST','email');
pt_register('POST','servidorde');
pt_register('POST','temdominio');
pt_register('POST','registar');
pt_register('POST','comentarios');
$comentarios=preg_replace("/(\015\012)|(\015)|(\012)/","
", $comentarios);if($nome=="" || $morada=="" || $codigopostal=="" || $cidade=="" || $concelho=="" || $teltlm=="" || $email=="" || $servidorde=="" ){
$errors=1;
$error.="
You did not enter one or more of the required fields. Please go back and try again.";
}
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email)){
$error.="Invalid email address entered";
$errors=1;
}
GO BACK
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="nome: ".$nome."
morada: ".$morada."
codigo postal: ".$codigopostal."
cidade: ".$cidade."
concelho: ".$concelho."
tel tlm: ".$teltlm."
email: ".$email."
servidor de: ".$servidorde."
tem dominio: ".$temdominio."
registar: ".$registar."
comentarios: ".$comentarios."
";
$message = stripslashes($message);
mail("comercial@sispt.com","Form Submitted at your website",$message,"From: phpFormGenerator");
header("Refresh: 0;url=http://sispt.com/obrigado.html");
?>