title: Using $_GET in the same file of text field that I GET from
body: <p>Not sure if I titled it right, however my problem is stated below and I can't, for the life of me, figure it out.</p>
  
  <blockquote>
    <p>In the same file, write a form consisting of a single text field and a
    submit button. The “action” attribute to the form should be the same
    page that the form is on  (don’t hard code, use $_SERVER[‘PHP_SELF’]).
    The form should send the contents of the text field via GET.<br>
    Upon submitting the form, you should be redirected to the same page,
    but the URL should contain the string from the text field as a GET
    request normally behaves.</p>
  </blockquote>
  
  <pre><code>&lt;!-- I am supposed to pass the value of the text 
  field over to the url according to the question --&gt;
  &lt;form action="questionThree.php" method="get"&gt;
      &lt;input type="text" name="text"&gt;&lt;br&gt;
      &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Have trouble getting the code to display properly. They're supposed to be in html tags, although it's a php file.</p>