Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
Cómo llamar a dos direcciones URL con un botón de envío para obtener datos del formulario

Estoy tratando de realizar dos funciones diferentes con un solo botón de envío, el siguiente script muestra el ejemplo de lo que estoy tratando de obtener. Gracias por ayudarme.
Solución esperada -> cuando hago clic en el botón Enviar, el archivo tiene que cargarse junto con map2 tiene redirección a mapRedirect url.

 from flask import flask, render_template, flash, request, redirect,url_for @app.route('/map2') def map_2(): return render_template('map2.html') @app.route('/mapRedirect', methods = ['POST', 'GET']) def onMap(): if request.method == 'POST': name = request.form['nm'] return redirect(f"map2") @app.route('/proc') def upload_file(): ## file upload script return render_template('proc.html')

mapa2.html

 <iframe name = "Ifrmp", id='mp', src="map2" >

proc.html

 <form method="post" enctype="multipart/form-data" target="Ifrmp"> <input type="submit" id='btn' name="nm" value="submit>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!