Page 1 of 1

php different form

Posted: Tue Dec 30, 2008 9:23 am
by chxxangie
there are form1 and form2.
form1 has a SAVE image button.
form2 is a form which contain some fields.
my question is, is it possible to save the data fields in form2 by clicking the button in form1.
so far i i do the same action in same form. but this time due to some reason, i need to seperate the form.
plz someone help me on this. thanks in advance!

Re: php different form

Posted: Fri Jan 02, 2009 3:10 am
by novice4eva
in form1's button

Code: Select all

onClick="document.form2.submit();"
This should work.

EDIT: Having said that, i was wondering how would it be of any help, there must be some fields in form 1 whose values should also be sent :dubious:

Re: php different form

Posted: Fri Jan 02, 2009 3:19 am
by The_Anomaly
Yeah, that doesn't make much sense. Could you clarify what you'd like, please? Why not just put them in one form?