<?php require_once('includes/requirepost.inc.php'); $name=TPOST('name'); $email=TPOST('email'); $subject=TPOST('fh_brief'); $text=TPOST('fh_text'); $errorareas=iif_array4(array( array(!$name,'ERROR-NO-NAME',array(0)), array(!$email || !is_valid_email($email),'ERROR-NO-EMAIL',array(0)), array(!$subject,'ERROR-NO-SUBJECT',array(0)), array(!$text,'ERROR-NO-TEXT',array(0)) )); if (count_true_entries($errorareas)>0) { $_SESSION['reserv.inputcache.domain']='contact'; $_SESSION['reserv.inputcache.data']=array( 'name'=>$name, 'email'=>$email, 'fh_brief'=>$subject, 'fh_text'=>$text ); $_SESSION['reserv.inputcache.errorareas']=$errorareas; redirect("qx-cmd-contact.html?op=revise"); return; } $body=<<<EOT From: $name <$email> Subject: $subject Body: $text EOT; sendmail($Config->MailerAddress,$Config->SupportMail,$subject,$body); redirect("qx-cmd-contact.sent.html?op=ok"); ?>