how to combine html forms

Rickstar picture Rickstar · Oct 29, 2010 · Viewed 14k times · Source

How would i combined 2 html forms

I am trying to combined to forms that are in different position. so i can post all the data at once.

Here is a eg

<form action="actions.php">
<input type="text">
<input type="text">
 <input type="submit" name="button" id="button" value="submit" />

</form> 


<form>
<input type="text">
<input type="text">
 </form> 

Answer

Artium picture Artium · Oct 29, 2010

You can add hidden fields in the second form and fill these fields (using java script) with the first form values before submission.