/    Sign up×
Community /Pin to ProfileBookmark

Submit 2 forms simultaneoulsy to a single page??

Hi

Is it possible to submit 2 forms to a single page at the same time….If yes, then the big question ….. How???

Let me explain what I m trying to do…..

I ve two forms. The second form shows the same data the first one shows. It is meant to provide a skeleton for the new record. I ve a button on whose click I ve to submit the first form and the second form simultaneously. The first form is actually showing the data from an existing record ,so it already has an id and the second one is meant to create a new record after submission ..

plz help

Arpan

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@toicontienFeb 13.2006 — The answer is no, and you shouldn't need to use two forms. Why on earth would you want to submit both the old and new records? Are you making a rollback copy of the record with each edit of an existing record?

You should display the existing record as plain HTML, no form inputs. When submitting the form, you can submit the new data. Your server side script should make the rollback copy before the new record is inserted. Once the rollback copy is made, gather the form data from the $GET or $POST variables and insert the new record.

Or am I completely off base? ?
Copy linkTweet thisAlerts:
@arpan_biswasauthorFeb 13.2006 — I have a field in every record which needs to be set before a new record is created . how on earth can I do that if I do not submit the old record.
Copy linkTweet thisAlerts:
@toicontienFeb 13.2006 — You need to elaborate before we can really help. You can just use separate form fileds, give each a unique name, and have your server side script interpret things correctly.
×

Success!

Help @arpan_biswas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...