title: How can I validate my drop down menu form in PHP
body: <p>/* how can I validate a drop down menu in php. I am trying to validate if empty to go back and enter in a treatment. */ </p>
  
  <pre><code>&lt;div class="field"&gt;
       &lt;label for="treatment"&gt;Treatment:&lt;/label&gt;
         &lt;select id="treatment" name="treatment" required&gt;
          &lt;option selected&gt;Choose a treatment&lt;/option&gt;
           &lt;option value="Massage"&gt;Massage&lt;/option&gt;
           &lt;option value="Beeauty"&gt;Beauty&lt;/option&gt;
           &lt;option value="Reiki"&gt;Reiki&lt;/option&gt;
           &lt;option value="Meditation"&gt;Meditation&lt;/option&gt;
           &lt;option value="Workshops"&gt;Workshops&lt;/option&gt;
         &lt;/select&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>/* my attempt so far doesn't work and I am confused by using REQUEST or POST also
  I am trying to include three drop down lists in one line (sorry am a beginner) */</p>
  
  <pre><code>if (!isset($_POST['treatment']) &amp;&amp; !isset($_POST['time']) &amp;&amp; !isset($_POST['duration'])) {
  echo "Please select treatment and  time.";
  exit();
  </code></pre>
  
  <p>}</p>