demo-review-process.php 638 Bytes
Newer Older
Oscar S. Siordia's avatar
Oscar S. Siordia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php
if( isset($_POST['name']) )
{
	$to = 'vokyvon@gmail.com'; // Replace with your email	
	$subject = 'Review from website'; // Replace with your $subject
	$headers = 'From: ' . $_POST['email'] . "\r\n" . 'Reply-To: ' . $_POST['email'];	
	
	$message = 'Name: ' . $_POST['name'] . "\n" .
	           'E-mail: ' . $_POST['email'] . "\n\n" .
	           'Quality of the product: ' . $_POST['quality'] . "\n" .
	           'Reliability of the product: ' . $_POST['reliability'] . "\n" .
	           'Overall rating: ' . $_POST['overall'] . "\n\n" .
	           'Review: ' . $_POST['review'];
	
	mail($to, $subject, $message, $headers);
}
?>