Hello...very new to php.....clueless in fact. Please see the code below and tell me where the isset , trim ect goes....I read the links in the other post but couldnt figure it out....i put an isset in there...but the message kept sending anyway. I even tried and if($whatever="") { echo "please input" } but the email was sent anyway.
<html><head></head>
<?php
// ASSIGN VARIABLES TO THE EMAIL
$to = "email@me.com" ;
$from = "POST[from]" ;
$subject = "POST[subject]" ;
$message = "_POST[message]" ;
?>
<body><center>
<fieldset style= "border: 10px ridge #3399FF; color: #000000 ; width: 350px ;">
<legend style="color: #ff0000; font-family: arial; font-size: 14pt;">
<b>Send Us A Message</b>
</legend>
<form method = "post" action="email-sent.php">
Subject : <input type="text" name="subject"><br>
Your Email : <input type="text" name="from"><br>
Message : <textarea name="message" rows="10" cols="40" class="txtarea" id="message"></textarea><br>
<font color="blue" face="arial"><b>Include you correct contact information<br>
so we can get back in touch with you.
</font></b>
<br><input type="submit" name="submit" value="Send Email">
</form></center>
</body></html>