You have received a message from '.$_SERVER['SERVER_NAME'].'

'; foreach($forms as $tag=>$val){ $z=explode('|',$val); list($type,$title,$values,$req)=$z; if(is_array($_POST[$tag]))$cont2=implode(',',$_POST[$tag]);else $cont2=$_POST[$tag]; $message.=' '; } $message.='
'.$title.' '.nl2br($cont2).'
'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'From: Contact '.$_SERVER['SERVER_NAME'].' ' . "\r\n"; // Mail it if(xmail($to, $subject, $message, $headers)){ $err='
Message successfully sent!
'; unset($_POST); }else{ $err='Ooops there seems to be an error! Contact the admin!'; } } } ?> Contact Superior Walls
Contact Superior Walls of America
Regarding License Opportunities
$val){ $z=explode('|',$val); list($type,$title,$values,$req)=$z; if($type=='input'){ $cont=""; } if($type=='textarea'){ $cont=""; } if($type=='select'){ $xpl=explode(';',$values); $cont='"; } if($type=='checkbox'){ $xpl=explode(';',$values); foreach($xpl as $xag=>$val){ if($val){ if(@in_array($val,$_POST[$tag]))$sel='checked';else $sel=''; $cont.=''; } } } if($type=='radio'){ $xpl=explode(';',$values); foreach($xpl as $yag=>$val){ if($val==$_POST[$tag])$sel='checked';else $sel=''; if($val){ $cont.=''; } } } if($error[$tag]==1){ $cls="class='redbg'"; }else{ $cls=''; } if($req==1){ $required[]=$tag; } ?>
*"?>
   
  Match the number shown on the left
 
'>