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

88
Vistas
Not getting value for select value in app.post in form for HTML/JS application

I am creating a form in which few valies are coming from DB and than i am updation the flag from 1 to 0 using select but app.post response body is not showing any data below is the code ... And there is one other method app.get from which i am showing data.

HTML(.HBS file ):-

<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>

app.js:-

app.post('/auth/access',async function(req,res){
    console.log(req.body);
/
});
about 4 years ago · Juan Pablo Isaza
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