Oh sorry... thanks!
<?php
//start session for the captcha code, there must never be any html before session_start(), will return an error
session_start();
//Check if captcha filled in, if not abort sending the message
if(strtolower($_POST['code']) == strtolower($_SESSION['random_number'])) {
//restraints
if (!empty($_POST['name']) &&
!empty($_POST['email']) &&
!empty($_POST['number']) &&
!empty($_POST['message'])) {
$message = "
Feedback from Website, sent on ".date('d - M - Y')."
Name: ".$_POST['name']."
Email: ".$_POST['email']."
Number: ".$_POST['number']."
Company: ".$_POST['company']."
Message: ".$_POST['message']."
";
$email = "lauren@amdesigngroup.com";
$subject = "Feedback from Website";
$headers = "From:
website@contact.co.za";
//mail($email, $subject, $message, $headers);
echo "true"; //if all goes smoothly 'true' is returned
} else echo "false"; //if the required fields are not filled in, 'false' is returned
} else echo "aborted"; //if captcha not correct, 'aborted' is returned
?>