title: Getting the text of a textarea under multiple div tags
body: <p>I have a Flask program like this that is supposed to have two side by side div tags, one for entering python code, and another one for the output:</p>
  <pre class="lang-py prettyprint-override"><code>from flask import Flask, render_template, request
  import os
  
  app = Flask(__name__)
  
  
  @app.route(&quot;/python&quot;)
  def python():
      v = os.listdir(r&quot;...&quot;)
      return render_template(&quot;python.html&quot;, v=v)
  
  
  @app.route(&quot;/run&quot;, methods=[&quot;GET&quot;, &quot;POST&quot;])
  def run():
      the_form = request.form
      x = the_form.get(&quot;enter-text&quot;)
  
      if x:
          return render_template(&quot;python.html&quot;, v=x)
      else:
          return render_template(&quot;python.html&quot;,)
  
  
  app.run(debug=True)
  
  </code></pre>
  <p>Here is python.html:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Python&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Welcome to the WPP!&lt;/p&gt;
  
      &lt;form action="/run" method="post"&gt;
      &lt;div&gt;
          &lt;div style="float: left;" name="enter-text"&gt;
              &lt;textarea rows="20" cols="50"&gt;&lt;/textarea&gt;
          &lt;/div&gt;
          &lt;div&gt;
              &lt;textarea rows="20" cols="40" style="margin-left: 6%;"&gt;{{v}}&lt;/textarea&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
          &lt;div name="submit"&gt;
              &lt;button type="submit"&gt;Execute&lt;/button&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  
      &lt;p&gt;{{v}}&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>When I enter <code>print(&quot;Hello World!&quot;)</code>, the URL is changed to /run as expected, but nothing is displayed in the output textarea tag. When I tried printing out <code>x</code> in the <code>run()</code> function, it gives me <code>None</code></p>