Dear All,
I am new to php, can some one tell me why do i receive blank fields from the following coding when I do entry and submit?
form.html
<! <FORM action="http://mydomain.com/submitform.php" method="POST">
Company Name:<p><input type="text" name="CompanyName" size="40" tabindex="1"> more fileds as well
submitform.php:
<?php
$recipient ="info@mydomain.com";
$subject = "Form Data";
$message ="A Form has been submitted which is as follow:\n\n";
$message .="Company Name = ".$POST['CompanyName']."\n";
$headers ="From: ".$POST['ContactPerson']."<".$_POST["Email"].">\n";
$headers .="X-Sender: <forms@mydomain.com>\n";
$ss =@mail($recipient, $subject, $message, $headers);
if ($ss) {
echo "<p><Center>Your Form has been submitted.</Center></p>";
}
?>
Thanks in advance for helping.
Muhib
muhib@liwal.com10