title: Dynamic Dropdown Menus If-Else
body: <p>I am currently making a pair of dropdown menus. The options of the second one dependent on the choice of the user on the first dropdown.</p>
  
  <p>Currently my code doesn't work and does not go into the if else function</p>
  
  <pre><code>$city="";
  $formcontent =&lt;&lt;&lt;EOT
  
              &lt;select name="City" id="City"&gt;
              &lt;option value="0"&gt;Make a Selection&lt;/option&gt;
              &lt;option value="City1" $city="City1"&gt;City1&lt;/option&gt;
              &lt;option value="City2" $city="City2"&gt;City2&lt;/option&gt;
              &lt;/select&gt;&lt;br&gt;&lt;/br&gt;
  
              &lt;select name="Street" id="Street"&gt;
              &lt;option value="0"&gt;Make a Selection&lt;/option&gt;
  EOT;
  
                      if($city=="City1"){ 
  
  $formcontent. = &lt;&lt;&lt;EOT
                  &lt;option value="City1Street1"&gt;City1 Street1&lt;/option&gt;
                  &lt;option value="City1Street2"&gt;City1 Street2&lt;/option&gt;
  EOT;
  }
  </code></pre>