/    Sign up×
Community /Pin to ProfileBookmark

Values from a order form to display on a diffirent page

I have a order form page and on submitting it opens a new web page that displays the order totals. Below is my code and most probably wrong but for me it seems logic. Please assist.

Order Form:

[CODE]<td colspan=”1″ height=”120″ align=”left”>
<select style=”margin-left: 60px; background-color: #00FF77;” name=”prod_bed_359″ onchange=”calculateValue(this.form)”>
<option value=”0″>0</option>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
</select> R359</td></tr>[/CODE]

New page I called a unction to print:

Code:

[CODE]function itemsOrdered() {
var beds = document.forms[2].prod_bed_359.value;
document.write(“<pre><strong>DescriptionttQuantitytPrice</strong></pre>”);
document.write(“<pre>Doggie Bedtt” + beds + “</pre>”);
}[/CODE]

This is still basic as I need to get this right before adding the prices and totals which is also extracted from the order page.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @hans_cellc 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.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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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