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

94
Views
No obtener valor para seleccionar valor en app.post en formulario para aplicación HTML/JS

Estoy creando un formulario en el que algunos valores provienen de DB y luego actualizo el indicador de 1 a 0 usando select pero el cuerpo de respuesta de app.post no muestra ningún dato a continuación es el código ... Y hay otro método app.get de la que estoy mostrando datos.

HTML (archivo .HBS): -

 <form action="/auth/access" method="POST"> <div class="table-data"> <h4 style = "position:relative; left:80px; top:2px;">Showing user </h4> <br> <table style = "position:relative; background-color:white ;width : 1430px;left:5px;" border="1"> <tr> <th>User Email</th> <th>User Name</th> <th>Approval Flag</th> </tr> <div> {{#each accessData}} {{#if value.Flag}} <tr> <td>{{value.User_Email}}</td> <td>{{value.User_Name}}</td> <td><select name="approval" id="approval"> <option value= "1">No</option> <option value= "0" >Yes</option> </select></td> </tr> {{/if}} {{/each}} </div> </table> <br> </form> <form action="/auth/access" method="POST"> <button style = "position:relative; left:80px; top:2px;" type="submit" class="btn btn-primary">SUBMIT</button> </div> </form>

aplicación.js: -

 app.post('/auth/access',async function(req,res){ console.log(req.body); / });
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!