Добрый день.Вот код.Спасибо.
<form action="/create-tender" method="POST">
<input type="text" name="category" id="category">
<input type="text" name="description" placeholder="Опишите подробнее..">
<button class="add-tender" type="submit">Создать</button>
<button class="tender-list">Все тендеры</button>
</form>
app.post('/create-tender', function(req,res) {
let category = req.body.category;
let description = req.body.description;
connection.query("INSERT INTO tenders (category,description) VALUES('" + category + "','" + description + "')", function(err,res) {
if(err) console.log(err);
else {
console.log(description)
}
});
});