title: How to return variables in Python Flask function and use them in another function?
body: <pre><code>@app.route('/', methods=['POST'])
  def value():
  
      port=22
      para1 = request.form['input1']
      para2 = request.form['input2']
      para3 = request.form['input3']
      ssh_client=paramiko.SSHClient()
      ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  
      ssh_client.connect(hostname=para1,port=port,username=para2,password=para3)
      return render_template('index.html')
  </code></pre>
  
  <p>I have a function like this that receives values from the HTML form, and I want to pass the value of <code>para1</code>, <code>para2</code>, <code>para3</code> to anther function.</p>
  
  <p>I try <code>return render_template('index.html'), para1, para2, para3</code> or 
  <code>return render_template('index.html', para1, para2, para3)</code></p>
  
  <p>Both of them do not work.</p>