title: Can't make php conditional "if" work inside HTML
body: <p>my code is the following;</p>
  
  <pre><code>            &lt;select class="reg_field_field" id="user_address_state" name="user_address_state" tabindex="7"&gt;
                  &lt;option value="AL" &lt;?php if($state=='AL') echo 'selected';?&gt;/&gt;Alabama&lt;/option&gt;
                  &lt;option value="AK" &lt;?php if($state=='AK') echo 'selected';?&gt;/&gt;Alaska&lt;/option&gt;
                  &lt;option value="AZ" &lt;?php if($state=='AZ') echo 'selected';?&gt;/&gt;Arizona&lt;/option&gt;
           ....       
              &lt;/select&gt;
  </code></pre>
  
  <p>And the result is showing me instead the state name, it show "Notice: Undefined variable...".</p>
  
  <p>I tried this in other server and worked, could be the php.ini configuration???
  What can be on php.ini?</p>
  
  <p>Thank you for any help</p>
  
  <p>Ale</p>