I have 3 input fields which are not inside a form tag. I cannot add them inside the form because the three input fields are at different locations on the same page.
I want to post input values outside form tag as well when i press submit button. How can i do that?
<input input type="text" id="elecr" value="2" name="electricity"></input>
<input input type="text" id="3wheel" value="3" name="threewheel"></input>
<input input type="text" id="4wheel" value="2" name="fourwheel"></input>
<form action="/savedata" method="post">
2Wheeler: <input type="text" id="2wheeler" value="0" name="twowheeler"/><br><br>
<input type="submit" />
</form>