/    Sign up×
Community /Pin to ProfileBookmark

2 form actions, one submit button… how?

Hi,
I need to combine these two actions, but can one get one to work at a time. How can I get them both to work when the submit button is pressed?

onsubmit=”return testCreditCard(this)”
onsubmit=”if( CheckForm(this)){ SetCookie (‘NumberOrdered’, 0, null, ‘/’); return true;} else { return false; }”

thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterFeb 25.2005 — You can submit forms programicly via someForm.submit()

or if you wanna join data,

you can have a third form with all hidden inputs that

obtains it's values from the other two forms.
Copy linkTweet thisAlerts:
@simon04authorFeb 25.2005 — I have no idea how to do that.
×

Success!

Help @simon04 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 5.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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