I'm having trouble scripting an employment application script for the following form.
www.terellcobbtwo.com/hcto2/careers_app.htm
here's what I have so far.
<?php
if(isset($_REQUEST['email']))
//if"email" is filled out, send email
(
//send email
$fullname= $REQUEST['fullname'];
$email= $REQUEST['email'];
$subject= $REQUEST['subject'];
$message= $REQUEST['message'];
mail("terellcobb424@yahoo.com", "Subject: $subject",
$message,"from: $email");
echo"Thank you for using our mail form"
";
}
else
//"email" is not filled out, dispaly the form
{
echo "<form method='post' action='mailform.php'>
email:<input name='email' type='text' /><br/>
subject: <input name='subject' type='text' /><br/>
message:<br/>
<textarea name='message' rows='15' cols='40'
</textarea><br/>
<input type='submit'/>
</form>";
}
?>