$threehun){$error='The message must contain more than '.$fift.' and fewer than '.$threehun.' characters.';} //elseif($len<$fift){$error='The message must contain more than '.$fift.'characters.';} //elseif($len>$threehun){$error='The message must contain fewer than '.$threehun.'characters.';} elseif(empty($eml)){$error='It appears that you forgot to enter your email address.';} elseif($eml!=$cnfrm){$error='The email addresses are not identical.';} elseif(empty($htst)){$error='It appears that you have not added the numbers in the human test.';} elseif($fone+$gone!=(int)$htst){$error='The human test is incorrect.';} if(empty($error)){if(stripos($_SESSION['_host'],'co.uk')>0){$dom='.co.uk';}elseif(stripos($_SESSION['_host'],'net')>0){$dom='.net';}else{$dom='.com';}mail("sales@ho-hose.co.uk","Ho-hose ($dom) Contact Form","$mssg\nName: $nme\n\nIP ADDRESS: $remadd\nDate and Time: $dte GMT\n","From: $eml"); echo '


Many thanks for your enquiry:

we will respond to your message

as soon as possible — usually within 12 hours.



';unset($nme,$eml,$cnfrm,$mssg,$dte);} else{echo '

Error

Oops!! ',$error,'


Please try again.


';};} if(!empty($error)||(empty($_GET['name'])&&empty($_GET['email'])&&empty($_GET['email_cnfrm'])&&empty($_GET['message'])&&empty($_GET['htest']))){$f=strval(mt_rand(100,999)); $g=strval(mt_rand(100,999));echo '

//
Ho-hose Contact Form
  * All fields are required              
Name:
Your e-mail address:
Confirm your e-mail address:
Message:
Human test - add the digits in red : ',$f[0],'',$f[1],'',$f[2],' + ',$g[0],'',$g[1],'',$g[2],' =  
';}?>