I have 4 forms on one php file.
form 1 contains user name and password of a database.
there is no submit button on the form.
form 2,3,4 are info of 3 tables of the database.
each form contains submit buttons, such as add new, delete, update and read.
when I click a button on any form (2,3,4), i.e. Read button on form 2, I hope info of both form 2 and 1 are posted because I need user name and password (on form 1) of the database to login.
so:
is it possible to post info of 2 forms when clicking a submit button?
is it possible to post info of 2 forms?
Moderator: General Moderators
-
php12342005
- Forum Commoner
- Posts: 79
- Joined: Mon Mar 21, 2005 3:35 am
just copy the values from one form to another.
Code: Select all
<form name="e;form1"e;>
<input type="e;text"e; name="e;bob"e; onKeydown="e;document.form2.bob2.value = this.value"e;>
</form>
<form name="e;form2"e;>
<input type="e;hidden"e; name="e;bob2"e;>
</form>