title: Echo variable and HTML in PHP IF statement
body: <p>I have the following code, which works exactly as I expect it to:</p>
  
  <pre><code>&lt;?php if ($a - $b &lt; 1)
  echo $text;
  elseif ($a - $b &gt;= 1)
  echo $a - $b;
  else
  echo $a; ?&gt;
  </code></pre>
  
  <p>However, now I also want to add a bit of HTML to the echo depending on the result of the IF statement.</p>
  
  <pre><code>&lt;?php if ($a - $b &lt; 1)
  echo $text;
  elseif ($a - $b &gt;= 1)
  echo $a - $b;
  &lt;input type="button" value="&lt;?php echo $button_txt; ?&gt;" id="button" class="button" /&gt;
  else
  echo $a;
  &lt;input type="button" value="&lt;?php echo $button2_txt; ?&gt;" id="button" class="button" /&gt; ?&gt;
  </code></pre>
  
  <p>When I do this, I get the following error: Parse error: syntax error, unexpected '&lt;' on line 213 (line 213 is referring to the first <code>&lt;input&gt;</code> line in the code above).</p>
  
  <p>Is there any way to include both the variables, and the HTML in the echo part of the IF statement?</p>