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>
With javascript you can grab all the form elements and combine them all into the same form and submit them at the same time. Is that kind of what you're looking for?
I do not know your actual requirement but it is advisable and standard practice(as what I know) to have one form and put the elements into that.. may be position them inside div/table/css etc. Then by using javascript you can get the control values. e.g:
or
hope this will give some idea
You can add hidden fields in the second form and fill these fields (using java script) with the first form values before submission.
Now they are combined.