questo e il files result.php


Codice PHP:
<?
session_start
();
if(isset(
$_SESSION['post'])){$post $_SESSION['post'];}else{$post=NULL;}


if(isset(
$post['name'])){$_name $post['name'];}else{$_name '';}
if(isset(
$post['surname'])){$_surname $post['surname'];}else{$_surname '';}
if(isset(
$post['telephone'])){$_telephone $post['telephone'];}else{$_telephone '';}
if(isset(
$post['sub'])){$_city $post['sub'];}else{$_city '';}
if(isset(
$post['email'])){$_email $post['email'];}else{$_email '';}
if(isset(
$post['comments'])){$_comments $post['comments'];}else{$_comments '';}

echo 
"Ok! You have inserted the correct captcha code. 

"
;
echo 
"You information has been sent 

"
;
echo 
"This is what you sent  

"
;

echo 
"Your Name: \"" $_name "\" 
"
;
echo 
"Your Surname: \"" $_surname "\" 
"
;
echo 
"Your Telephone: \"" $_telephone "\" 
"
;
echo 
"Your sub: \"" $_sub"\" 
"
;
echo 
"Your email: \"" $_email "\" 
"
;
echo 
"Your Comments: \"" $_comments "\" 
"
;
             
echo 
'messaggio inviato ';    

// send form content to an email address
$mailuser "yourName@yourDomainnNamee.com"// insert destination email address here

$header "Return-Path: ".$mailuser."\r\n"
$header .= "From: form with captcha <".$mailuser.">\r\n"
$header .= "Content-Type: text/html;"
          
$mail_body '
The User: '
$_company .' has sent his input.
Your Name: '
$_name '

Your Surname: '
$_surname '

Your Telephone: '
$_telephone '

Your Zip: '
$_sub '

Your email: '
$_email '

Your Comments: '
$_comments '
'
;    
    
mail ($mailuser'Form sent'$mail_body$header);
?>