Contact Form Problems

:worried: Man, it should all be working but its not. I’m trying to develop a simple contact form, everything normal. Where its screwing up?

a) There is a textbox on the stage with no text in it. Upon pressing of the submit button, if any of the four fields are blank or still have their default values, the textbox’s text value becomes “You must complete all fields to continue.” This does not happen. The information gets emailed regardless. And if it does all check out, then upon onClipEvent(data) on the form movieclip (with the fields in it), the textbox shows a thank you message. This does not happen either.

b) The email.php script does not send the company value, obviously something is wrong with the PHP but I don’t knonw what.

FLA : http://www.vexiron.com/Vexiron/support/contactus.fla

PHP:


<?php
$sendTo = "vexir@vexiron.com";
$subject = "A comment has been made on Vexiron.com";


$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Company: " . $_POST["company"];
$message = $_POST["comments"];



mail($sendTo, $subject, $message, $headers);
?>