Mastering Development

How can send readonly value from a form?

<form action="/upload" method="POST" enctype="multipart/form-data">
        <span>Event name</span>
        <input name = "name" type="text" class="form-control" value="<%= `${}` %>" readonly>
        <button type="submit" id="form-submit" class="btn">Add Event</button>

and then i’m doing and getting undefined… How do i resolve it?"/upload", (req, res) => {

Leave a Reply

Your email address will not be published. Required fields are marked *