Determine if there is a value in a text field after submitting form
<p>All,
I have a contact form on my page. I've got some jQuery things to contorl the form submission and I also have some PHP validation before I send the form. I'm still getting some blank emails. I make the email address and name a required field. I then have the following PHP:</p>

<pre><code>&lt;?php
$email = $_POST['email'];
if($email != ""){
     //send email
}
</code></pre>

<p>I'm still getting emails though. Would use the empty function work? I'm just trying to make sure there is actually text in the field for it to send instead of being able to send the blank form. What methods do people use to control this?</p>

<p>Thanks in advance!</p>
