Answer the question
In order to leave comments, you need to log in
How to submit a feedback form on a button click outside the form tag?
There are 2 components. In the first form with fields to fill. And in the second, certain information and a button for submitting the form.
How to connect this case?
Answer the question
In order to leave comments, you need to log in
<form id="data" action="handler.php">
<p><input placeholder="Ваше имя" name="user"></p>
</form>
<p><button type="submit" form="data">Отправить форму</button></p>
</body>
</html>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question