|
How would I go about creating a shopping cart for a website without using a database?
I am not aiming to actually have my products purchased, as this website is for simulating an online purchase experience.
What I want is for the user to input all their information and view the products they can purchase and in what quantity on one page. I am not too worried about the information being secure, as I will state that because it is a simulation, no real personal information should be given. The information will all be cleared when the user leaves the website.
After clicking "Review Order" or something like that, I want the page (after verifying the user's information) to show the order so far. The button to actually process and send the order will not work.
Maybe this will help:
Order Page 1. Item 1 (Price: ____) Quantity: [ ] 2. Item 2 (Price: ____) Quantity: [ ]
(These are input fields.) Name: Address: City: State: Zip Code: e-Mail:
Name on Credit Card: First: Last: Credit Card Number: Expiration Date: Card Type: ()MasterCard ()Visa ()Discover
[Review Order] (This button will lead to this next page, with items and their quantities remembered as well as the user/credit card information remembered.)
Review Order Page
Name: Address: City: State: Zip Code: e-Mail: Name on Credit Card: (First) (Last) Credit Card Number: XXXX-XXXX-XXXX-#### Expiration Date: (mm/yy) Card Type: ()MasterCard ()Visa ()Discover
[Submit Order] (This button will not work.)
|
|
|
|
|
|
I don't have a server or access to one that supports PHP.
Last Edit: Jan 16, 2007 17:36:17 GMT by Rouno
|
|
|
|
|
You can install it on your own computer by downloading the appropriate files from php.net, then following the download instructions. I've never done this, so this is all I know.
|
Support Rob Scuderi, the #1 Penguins Defender!
"Behold: me! I have authority in this building."
|
|
|
|
good either easyphp or wamp server they are two good programs that allow you to run php on ur computer without having the stress of setting up apache mysql and php etc...
as for the simulation without a database use either sessions or as mithras said the POST method
|
|
|
|
|
I recommend XAMPP for local production. Also, Eichi, do you still have your JS skills? If so, you could do it completely JS based using this to store the data.
|
|
|
|
|
Thanks for the help everyone, even though I don't really know PHP. XD I recommend XAMPP for local production. Also, Eichi, do you still have your JS skills? If so, you could do it completely JS based using this to store the data. I've forgotten a lot of JS stuff. I haven't done it in so long. That could be the thing I'm looking for. All I need to do now is know how to use it and how to clear the data, if possible. Thank you.
|
|
|
|
|
Peter gives an example in that thread. And to clear the data, I'd just set the data to nothing. *Shrugs*
|
|
|
|