SUBMIT A REVIEW
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $pdo->prepare('INSERT INTO reviews (name, email, review, comments) VALUES (:name, :email, :review, :comments)'); $stmt->execute(array( ':name' => $_POST['name'], ':email' => $_POST['email'], ':review' => $_POST['review'], ':comments' => $_POST['comments'] )); $_SESSION['review'] = 1; echo "Your review has been sent to us, we will process it soon and post it on our website. Many thanks for your support"; die; } catch(PDOException $e) { echo 'Error: ' . $e->getMessage(); } } } } ?>
Your Review:
Additional Comments: