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

145
Views
REQ.BODY IN TEXT AREA

how are you? I have a problem. I'm using JavaScript, express and ejs. I have a textarea in my form and i want to put there the req.body. In my other inputs, I can do that because I have attribute value so I put there my req.body, but textarea doesn't have value so I can't do it. Someone can help me? Thank you

<form class="contact-form" action="/contact" method="POST">
<label for="name">
    <input class="contact-form__input" type="text" name="name" placeholder="Nombre y apellido" value="<%= locals.old && old.name ? old.name : ""  %>"> 
</label>
<% if (locals.errors && errors.name) { %>
    <p> <%= errors.name.msg %> </p>
<% } %>
<label for="email">
    <input class="contact-form__input" type="email" name="email" placeholder="Correo electronico" value="<%= locals.old && old.email ? old.email : ""  %>">
</label>
<% if (locals.errors && errors.email) { %>
    <p> <%= errors.email.msg %> </p>
<% } %>
<label for="msg">
    <textarea  class="contact-form__input" name="msg"  cols="30" rows="10" placeholder="introduzca su mensaje" ></textarea>
</label>
<% if (locals.errors && errors.msg) { %>
    <p> <%= errors.msg.msg %> </p>
<% } %>
<div class="contact-form__button-contain">
    <label for="button"> 
        <button class="contact-form__button" type="submit" name="button" >Enviar</button>
        
    </label>

</div>
    
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!