title: Putting a PHP variable as a text box value
body: <p>I am trying to write code that passes a php variable as a textboxes value.
  Here is the following code I tried:</p>
  
  <pre><code>echo "&lt;td&gt;"."&lt;input type='text' value='&lt;?php echo $start_date; ?&gt;'/&gt;"."&lt;/td&gt;"
  </code></pre>
  
  <p>This brings up an error : Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';'</p>
  
  <p>I have tried various methods of re-wording:</p>
  
  <pre><code> echo "&lt;input type='text' value='&lt;?php echo $start_date?&gt;'/&gt;"; 
  </code></pre>
  
  <p>(this was purely to test as I would like the result in a table row)</p>
  
  <p>but this shows: </p>
  
  <pre><code>&lt;?php echo ?&gt; 
  </code></pre>
  
  <p>in the textbox and I also get this error: Notice: Undefined variable: start_date...</p>
  
  <p>Thanks in advance for any help.</p>