php different form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chxxangie
Forum Newbie
Posts: 12
Joined: Wed Sep 19, 2007 10:00 pm

php different form

Post 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!
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: php different form

Post 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:
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: php different form

Post 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?
Post Reply