/    Sign up×
Community /Pin to ProfileBookmark

submit button action in Javascript

hi all, I need help here with my html form action, I am trying to use javascript as well for processing the form. The main problem is: when the user click the submit form, is that possible to process two action at a time?..(1) I need to send the form content to Database via another ASP file, and (2) send the form content to my email. I would like to have those function works when user click the SUBMIT button.

Please help.

this is my form HTML code:


<FORM action = “Order.asp” method=POST name=form1>

<INPUT type=”button” value=”Submit Order” name=submit1 OnClick=”CheckData()”>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriApr 06.2004 — try <form onsubmit="return CheckData();"...>
×

Success!

Help @adit 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.25,
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,
)...