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

198
Views
Cómo crear una oración MySQL en un archivo Javascript con SweetAlert2

Estoy creando una alerta básica ULTRA con SweetAlert2 y tengo una entrada (texto) en ella, donde quiero que el texto insertado se inserte en una base de datos MySQL, sé que Javascript no es compatible con MySQL de forma nativa, así que ahí es donde va mi pregunta , ¿qué herramienta, complemento, extensión debo usar?

Aquí hay una representación visual de lo que tengo:

Aquí está SweetAlert con una entrada

Aquí hay una segunda alerta dulce donde veo que el texto se ha almacenado con éxito en una variable

Y finalmente aquí está mi código (muy simple)

Aquí está mi código:

 (async () => { const {value: name} = await Swal.fire({ title: 'Hello', text: 'Insert your name', confirmButtonText: 'REGISTER', input: 'text' }); if(name){ Swal.fire({ title: `Welcome ${name}` }); //Here I want to insert the name in a MySQL database } })()
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!