/    Sign up×
Community /Pin to ProfileBookmark

I am making a site to sell custom parts. Say I have two pages of diffrent parts. If the customer selects what he wants on the first page, and clicks continue, how can you make it so the total price of what he selected on the first page will be on the second page?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJul 08.2006 — This is easy to handle using server-side code. Using JavaScript for this would be rather clunky, but accomplishable. Say the word if you wish to proceed further with a JavaScript solution.
Copy linkTweet thisAlerts:
@codeDizzyJul 09.2006 — You can use javascript cookies.

I don't know any other way to do it in client-side js.
Copy linkTweet thisAlerts:
@KingbillauthorJul 09.2006 — http://www.stealthmachines.com/NewSiteTemp/build/rogue/. This is one example of what I am trying to do, except I am not seeling computers. But my script is ver similar to this. I just dont know how to get the price to go to the second page. This has a .php page for the second and third pages. Thanks for the help.
Copy linkTweet thisAlerts:
@phpnoviceJul 09.2006 — This has a .php page for the second and third pages.[/QUOTE]
Yes, because it is easy to handle data transfer between pages if server-side code is doing the work. The first HTML page submits to a PHP page. That PHP page receives the first page's data and formats the output of the second page to the client based on the data from the first page -- plus additional information for the second page. Then that process is repeated for going to the third page. It's a cummulative process where page 2 has the data for page one and two and page 3 has the data for all three pages.
Copy linkTweet thisAlerts:
@hyperliskJul 09.2006 — You can use javascript cookies.

I don't know any other way to do it in client-side js.[/QUOTE]


You could send the info through GET variables in the URL...
×

Success!

Help @Kingbill 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.16,
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,
)...