title: PHP if statement inside HTML attribute
body: <p>I was wondering something. I'm looking at code from other trainees (who left, so I can't ask anything). I see the following:</p>
  
  <pre><code>&lt;input type="text" 
  name="name" 
  class="form-control" 
  placeholder="name" 
  value="&lt;?php if (isset($something)): echo 'bla'; 
               else: if(!empty($somethingelse)): echo 'bla2'; endif;"
  &gt;
  </code></pre>
  
  <p>This actually does look pretty ugly if I say so myself. I was wondering: is this actually a "good"/okay way to do it or is it really as bad as I think?</p>