title: How can I get a PHP value from an HTML form?
body: <p>I have an HTML form as follows:</p>
  <pre><code>&lt;form enctype=&quot;multipart/form-data&quot; action=&quot; &quot; method=&quot;post&quot;&gt;
  &lt;input name=&quot;username&quot; type=&quot;text&quot;/&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Upload&quot; class=&quot;btn btn-primary&quot;/&gt;&lt;br/&gt;
  &lt;/form&gt;
  </code></pre>
  <p>I want that the user of this form enters data in the input box. Then I would like this data to be the value of a PHP string - e.g. <code>$username = &quot;MY_NAME&quot;;</code> where <code>MY_NAME</code> is the value of the HTML form entered by the user.</p>
  <p>If the input by the user in the input box is e.g. <code>&quot;STACKOVERFLOW&quot;</code> I want the PHP string to be <code>$username = &quot;STACKOVERFLOW&quot;;</code></p>