Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;?php // Subject $subject = "Results from Enquiry form"; // form information will be sent to. $mailto = 'abc@eabc.com'; //form url $formurl = "http://www.e247dubai.com"; // redirect after form is processed. $confirmurl = 'http://www.e247dubai.com'; //redirect for errors $errorurl = "http://www.e247dubai.com"; $email_is_required =1; $name_is_required =1; $comments_is_required = 1; $telephone_is_required = 1; $uself = 0; $forcelf = 0; $use_envsender = 1; $use_sendmailfrom = 0; $smtp_server_win = ""; $use_webmaster_email_for_from = 0; $use_utf8 = 1; define ('MAX_LINE_LENGTH', 900 ); $headersep = $uself ? "\n":"\r\n"; $content_nl = $forcelf ? "\n" : (defined('PHP_EOL') ? PHP_EOL : "\n"); $content_type = $use_utf8 ? 'Content-Type: text/plain; charset="utf-8"' : 'Content-Type: text/plain; charset="iso-8859-1"'; if ($use_sendmailfrom) { ini_set('sendmail_from', $mailto); } $envsender= "-f$mailto"; $name = isset($_POST['name']) ? $_POST['name']: $_POST['name']; $address=$_POST['address']; $city=$_POST['city']; $state=$_POST['state']; $postcode=$_POST['postcode']; $telephone=$_POST['telephone']; $email=$_POST['email']; $comments=$_POST['comments']; $bushwalking=$_POST['bushwalking']; $trout_fishing=$_POST['trout_fishing']; $canoeing=$_POST['canoeing']; $accommodation=$_POST['accommodation']; $corporate_events=$_POST['corporate_events']; $guests_for_accomm=$_POST['guests_for_accomm']; $stay=$_POST['stay']; $dday=$_POST['dday']; $dMonth=$_POST['dMonth']; $dYear=$_POST['dYear']; $http_referrer=getenv ("HTTP_REFERER" ); if (!isset($_POST['email'])) { header("Location: $formurl" ); exit; } if (($email_is_required &amp;&amp; (empty($email) || !preg_match('/@/', $email))) || ($name_is_required &amp;&amp; empty($name)) || ($comments_is_required &amp;&amp; empty($comments))) { header("Location: $errorurl" ); exit; } if ( preg_match("/[\r\n]/", $name) || preg_match ("/[\r\n]/", $email) ) {header( "Location: $errorurl" ); exit; } if (empty($email)) { $email = $mailto ; } $fromemail = $use_webmaster_email_for_from ? $mailto : $email; if (function_exists('get_magic_quotes_gpc' ) &amp;&amp; get_magic_quotes_gpc()) { $comments = stripslashes ($comments); } //echo "name :".$name. " Address: ".$address." City:".$city; $messageproper = "Ths message was sent from:" . $content_nl . "http_referer" . $content_nl . "----------------------------------------------------------------- " . $content_nl . "Name of sender: $name" . $content_nl . "Address of sender: $address" . $content_nl . "City of sender: $city" . $content_nl . "State of sender: $state" . $content_nl . "Postcode of sender: $postcode" . $content_nl . "Telephone of sender: $telephone" . $content_nl . "Email of sender: $email" . $content_nl . "Required information: $bushwalking, $trout_fishing, $canoeing, $accommodation, $corporate_events " . $content_nl . "Number of guest: $guests_for_accomm" . $content_nl . "Length of stay: $stay" . $content_nl . "Date if arrival: $dday, dMonth, dYear" . $content_nl . "-------------------------------------------COMMENTS--------------------------------------" . $content_nl . $contents_nl . wordwrap($comments, MAX_LINE_LENGTH, $content_nl, true ) . $content_nl . $content_nl . "---------------------------------------------------------------------------------------------------------" . $content_nl ; $headers = "From:\"$name\" &lt;$fromemail&gt;" . $headersep . "Reply-To:\"$name\"&lt;$email&gt;" . $headersep . "X-Mailer: chfeedback.php 2.16.2" . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ; if ($use_envsender) { if(mail($mailto, $subject, $messageproper, $headers, $envsender)) { echo ("Location: $confirmurl"); }} else { echo( "Location: $errorurl" ); } ?&gt; </code></pre> <p>Try this.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload