title: Send data back to HTML using SimpleHTTPServer
body: <p>I have a form which has a GET action on a button that mimics a login action</p>
  
  <pre><code>&lt;div class='row'&gt;
      &lt;fieldset&gt;
          &lt;form method="get"&gt;
          &lt;input type="submit" value="Login to Server"&gt;
          &lt;/form&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have implemented the do_GET method on the server side that handles this request and gets a token </p>
  
  <pre><code>def do_GET(self):
      if self.path == '/index?':
          token = login()
          self.send_response(200)
          self.send_header('Content-type', 'text/html')
          self.end_headers()
          # write out to html?
          # self.wfile.write('&lt;html&gt;') 
          # ...
  </code></pre>
  
  <p>I don't want to navigate to a new page on the submit 
  How do I pass the token value back to my html code to display that the login was successful? e.g. as a new label</p>
  
  <p>I'm very new to HTML and any help would be appreciated!</p>