/    Sign up×
Community /Pin to ProfileBookmark

Passing value from form A to form B

Hi, if anyone could help, would be awesome.
There are 2 forms:
-FORM A-
item1 [a] $50 [b] [c]
item2 [a] $60 [b] [c]
item3 [a] $70 [b] [c]
Total [d] <next page>
*[a]=check box,[b]=dropdown for how many, [c]=calculation $50 x [b]
[d]=total of [c]

*[c] and [d] is javascript calculation

-FORM B-
Selected Item [from a]
Total Amount [from d]

By clicking <next page> button, want to display the value what was selected and the total aamoutn from FORM A on FORM B. However,
it’s displays the script instead of value and I can’t work that out.
Could I have any help??
Thank you very much!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorAug 03.2005 — document.forms['formBname'].elements['elementname'].value=document.forms['formAname'].elements['elementname'].value
Copy linkTweet thisAlerts:
@ayakoauthorAug 10.2005 — Thanks for the advise...

It's still not working because I'm not sure how to code the "selected value" carry to form B.

What I want to is:

http://www.ayako.umaku.com/test1/tourform.html
>there are check box to select and dropdown to select number of people that reflect to the sub total amount/total amount as auto-calculation.

>when the <next page> buttun is clicked,

http://www.ayako.umaku.com/test1/tourform3.html

-selected tour (check box)

-Pax (dropdown)

-Total amount (field_total)

those are passing from the previous form and displayed in the field, then

other information will be filled out.

then at the end, when the <confirm your order> button is clicked, the next page

will show all the information with <Submit> button to send it to the specified email address.


What I ahve the trouble is how to carry the checkbox/dropdown/field_total value to

the 2nd form(form name=customer)..

Would you mind to help me again?

Thank you so much!
×

Success!

Help @ayako 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.27,
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,
)...