I am new to php. Please advise me where I am going wrong.
<?php
if ($_POST ['formsubmit'] == 'submit')
{
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "xxxxxxxxxxxx";
$email_subject = "Enquiry Form";
function died($error) {
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.