Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;?php session_start(); /* Set the variables below */ $contact_us = "contact-form"; $website_url = 'http://www.yourwebsite.com/'; $error_page_url = $website_url . 'error.html'; $paypal_page_url = $website_url . 'paypalpageurl.html'; $dummy_email = 'no-reply@yourwebsite.com'; $receiver_email_id = 'me@yourwebsite.com'; /** WARNING !! Dont make changes below ***/ if(!empty($_REQUEST['uri'])){ $uri=$_REQUEST['uri']; }else{ $uri=''; } switch($uri){ case $contact_us: contact(); break; default: ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $website_url; ?&gt;"&gt;&lt;?php } function contact($request = "Contact Form"){ global $error_page_url, $paypal_page_url, $dummy_email, $receiver_email_id,$website_url; $subject = "[yourwebsite.com] - Contact Form"; $email = htmlentities($_REQUEST['email']); $name = htmlentities($_REQUEST['name']); $phone = htmlentities($_REQUEST['phone']); $comment = htmlentities($_REQUEST['comment']); $filter = htmlentities($_REQUEST['filter']); $headers = "From:" . $dummy_email; $headers1 = "From:" . 'no-reply@yourwebsite.com'; $formatted_message = "Request : " . $request . "\n" . "\n" . "Sender Name : " . $name . "(" . $email . ")" . "\n" . "\n" . "Email : " . $email . "\n" . "\n" . "Phone : " . $phone . "\n" . "\n" . "Comment : " . "\n" . $comment . "\n" . "\n"; $formatted_message_client = "Hi " . $name . ","."\n" . "\n" . "Thanks for contacting us. We will get back to you soon." . "\n" . "\n" . "Regards," . "\n" . "yourwebsite.com Team"; if($_POST['check'] != $_SESSION['check']) { session_destroy(); ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $error_page_url; ?&gt;"&gt;&lt;?php } else { session_destroy(); if(!filter_var($email, FILTER_VALIDATE_EMAIL)) { ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $error_page_url; ?&gt;"&gt;&lt;?php } else { if($name == '' or $email == '' or $phone == '' or $filter != ''){ ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $error_page_url; ?&gt;"&gt;&lt;?php }else{ if( mail($receiver_email_id, $subject, $formatted_message, $headers1) &amp;&amp; mail($email, $subject, $formatted_message_client, $headers)){ //session_destroy(); ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $paypal_page_url; ?&gt;"&gt;&lt;?php }else{ ?&gt;&lt;meta HTTP-EQUIV="REFRESH" content="0; url=&lt;?php echo $error_page_url; ?&gt;"&gt;&lt;?php } } } } } ?&gt; </code></pre>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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