/    Sign up×
Community /Pin to ProfileBookmark

Any Ideas….please!!

Hi,

I am modifying a JS calculation script which allows to the user to perfom a sum…simply, they fill in box A, press submit, and then the javascript does the calculation and return the results into 3 other text boxes on that form.

What i am wanting to do is to give the user the option to send that info (once calculated) to an email address (using php)….but as I have specified the onsubmit to be the calculation…how can this be done?

Thanks in advance

Dave

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@so_is_thisNov 26.2006 — Just provide two buttons -- one for Calculate and one for Submit. The Calculate button would be a standard (non-submit) button and you would use its [B]onclick[/B] event to perform the calculations. Then the Submit button would transfer the data to PHP (and you would use the form's [B]onsubmit[/B] event to validate that a calculation had actually been done).
×

Success!

Help @rockable 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.3,
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,
)...