Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

181
Vistas
how to import data from HTML Button from a server

I am working on a project where I need to import data from My website i.e when someone clicks a button then a string should be generated and I should import that string to a python script running on windows on a client-side. For this purpose Ive used Flask-Python but the problem is that In flask we need to create a template folder in the project folder where the python script is saved. but in my scenario, I need to run python script on windows and the template folder should be placed on the website page as I need to run HTML file on the webserver and import data from that file. I am facing this problem for a long time please someone help me.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can send the string to your route in flask. for example if you set your port in flask to 5000 so when you run it you can see in terminal the link to localhost lets say it looks like this http://195.128.1.18:5000/ and your route in flask looks like this :

@app.route('/')
def test():
    str = request.args.get('mystring', None)
    return str

and what it does it's basically shows the string you sent from html.
And your html code to send the data looks like this :

<body>
  <form target="_blank" action="http://195.128.1.18:5000/">
       Your String you want to send<input type="text" name="mystring">
       <input type="submit" value="Submit">
  </form>
</body>
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda