Checking that all form fields aren't empty
<p>I have added a checker to ensure that all fields in a form have data within when the form is submitted.</p>

<pre><code>if(     (   isset($_POST['name'] == "Contact")  )
    &amp;&amp; (    isset($_POST['company'] == "Company Name")  )
    &amp;&amp; (    isset($_POST['address'] == "Address")   )
    &amp;&amp; (    isset($_POST['turnover'] == "Approx. Turnover") )
    &amp;&amp; (    isset($_POST['employees'] == "No. Of Employees")    ) 
    &amp;&amp; (    isset($_POST['contact'] == "Contact Number")    )  
  )
    {
    //nothing has changed and we fail the form
    $_SESSION['failed'] == true;
}
else{
</code></pre>

<p>I am getting the following error:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_IS_EQUAL, expecting ',' or ')'</p>
</blockquote>

<p>Can anyone see what the problem is?
Also, will this check that all post values have data within?</p>

<p>Thanks.</p>
