title: Insert value into a text box which is inside an echo statement
body: <p>I have this code basis:</p>
  
  <pre><code>echo '&lt;input required  type = "text" name = "subject1" value="XXX" /&gt;';
  </code></pre>
  
  <p>However, I would like XXX to be a variable, I have searched this online, but all the things that one of the discussions says is to do this:</p>
  
  <pre><code>value=\"$firstName\" 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>value='$firstName'
  </code></pre>
  
  <p>I have tried both of these, but they don't work, and I was hoping that someone could help me with this problem, basically, what I want is to be able to asign the value of a text edit to a variable in php, but when the text edit itself, is embedded in an echo, nothing seems to work.</p>
  
  <p>Thanks</p>