I'm just a nub, but from the looks of it, whats happening is since your useing an if/else statement it breaks down like this:
You access the page, since submit has not been pressed it sends the mail, (because of the else), but once submit is pressed it runs thorugh all the checks, but doesn't do the mail() function.
Try this:
<?php
if (isSet($submit)) {
if (!$name || !$email || !$info || !$what) {
echo "You did not fill in all of the fields";
if (!$email || $email < 10) {
echo "Please enter a valid Email";
quit()
}
if (!$name || $name < 3) {
echo "Please enter your name";
quit()
}
if (!$info || $info < 30) {
echo "Please give us some more information";
quit()
}
if (!$what || $what < 30) {
echo "Please tell us what you want to do.";
quit()
}
}
$to = "gfxbase@ahrenp.com";
$msg = "From:$name \n Reply Address:$email \n\n $info \n\n $what";
$subject = "GFX Base Application";
mail($to,$subject,$msg);
} else {
echo "<form name='join_us' action='?p=join' method='post'>
<input type='text' name='name' value='Your Name' class='text'><br>
<input type='text' name='email' value='Your Email' class='text'><br>
<textarea name='info' cols='60' rows='10' class='text'>A little bit about yourself.</text><br>
<textarea name='what' cols='60' rows='10' class='text'>What you wan to do for us.</text><br>
<input type='submit' name='submit' value='Send Application' class='text'>
</form>";
}
?>
You might also want to make a function that happens any time the user screws up, that way if something isn't there or is too short they have the form right there with all their old stuff filled in.