I have tried looking around for a solution but I have yet to find one! It is probably a simple error but I cannot work it out. I simply cannot get the online contact form working - it displays a 500 error page.
The PHP:
<?php
$myemail = "me@myemail.com";
$name = $_POST['name'];
$phone = $_POST['phone']
$email = $_POST['email'];
$message = $_POST['message'];
$message = "
*MESSAGE FROM ONLINE FORM*
$message
Sent from:
Name: $name
E-mail: $email
Phone: $phone
";
mail($myemail, $name, $phone, $email, $message);
header('Location: http://thewebaddress.co.uk');
?>
The HTML:
<div class="contactform">
<form action="sendform.php" method="post">
Name:<br>
<input type="text" name="name" id="name"/ ><br>
Email:<br>
<input type="email" name="email" id="email" /><br/>
Phone:<br/>
<input type="text" name="phone" id="phone" /><br/>
Message:<br/>
<textarea name="message" id="message" ></textarea>
<input type="submit" value="Send Message!" class="button" id="submit" name="submitform" />
</form>
</div>
Thanks in advance!