I'm just a beginner when it comes to php but I've been playing with form scripts. They are simple because the php form script will just read your form names as variables (if you put a $ on it
Here is another way to handle your form if you want to 'play' with php (if not - just skip this post
==========
I changed two lines in your form:
<form method=POST action="sendemail.php"><BR>
The action line to point to the little php script I wrote (see below for the sendemail.php script)
And I changed this line:
<INPUT TYPE=HIDDEN VALUE="sharon.lane@rare-cancer.org" name="mymail"><BR>
because the 'required-to' did not seem to work with "-" in the name - so I rename the variable to mymail
-----------
You will want to change'Subject' from CGIEMAIL Example Subject
==============
Then I wrote this code (HTML and php) and saved the file as sendemail.php (as pure ASCII text file of course). And I uploaded it to the same directory as the contactus so I didn't have to worry about path info in the 'action'
+++++++++
sendemail.php code
+++++++++
<html>
<head>
<title>Example Sendemail PHP Script</title>
</head>
<body>
<?php
if (!isset($Email) || !isset($mymail))
echo "<font size=6>Somebody Goofed</font>" ;
$message = "Type of message? $MessageType \n
What is the subject? $Subject \n
Comments? $Comments \n
Your name? $Username \n
Your email? $Email \n
Alt email? $AltEmail \n
Phone #? $Phone \n
";
$from = "From: $Email\r\n";
if ($mymail != "")
mail($mymail, $subject, $message, $from);
?>
<p align=center>
Thank You Info Here<br>I wasn't sure what to do with the variable 'success' so I just echo it here at an anchor tag:
<br><a href="<?php echo $success ?>"> Success </a>
</body>
</html>