title: Need php form to name which required fields have not been filled out
body: <p>My php form has required fields, but the message does not let the user know which field hasn't been entered. How can I do this?</p>
  
  <pre><code>//if statement to check required fields
  if ($name &amp;&amp; $phone &amp;&amp; $email &amp;&amp; &amp;&amp; $address &amp;&amp; $city &amp;&amp; $state &amp;&amp; $zip &amp;&amp; $month &amp;&amp; $date &amp;&amp; $year &amp;&amp; $contact)...
      //if some required fields were not filled out
      echo "Please make sure you fill in all required fields&lt;br&gt;Click &lt;a href=\"javascript:history.back(1)\"&gt;here&lt;/a&gt; to return to our form.";
  }
  </code></pre>