Welcome Guest, Not a member yet? Register   Sign In
Ordering process advice needed, ?_POST vs. DB
#1

[eluser]bjora857[/eluser]
On my website I sell customized art. The ordering process consists of 7 steps.

Step 1. Style. Specifying what style you want on the art. 8 styles are available.

Step 2. Options. Each style has different options. for example if the customer has chosen style A she can specify which colors,
if the customer has chosen Style B she can chose if she wants a lion or a monkey in the background. etc.

Step 3. Size. Here the customer can chose which size she wants the art in. Different styles are available in different sizes.

Step 4. Mounting. Here the customer can choose if she wants it mounted or not.

Step 5. Customer info. Name, adress, phonenumer etc..

Step 6. Summarize of the order.

Step 7. Thanks for your order page.


This ordering process now works. I use validation and repopulating. Every step is a different page, and I use the $_POST array to send
the info through the ordering process. ##I use if($_POST[’style’]==styleA) { show some Options}.... to show different options depending on choices earlier in the process.#and form hidden fields to send info through the different steps.

If the customers clicks all the way through to step 7, all info is being sent to a database and a order is placed.



Now to my question... Is there a better way to do this? I have to use hidden fields and the code is kind of messy.

How would you construct the ordering process?

I was thinking of inserting into the DB after each step, but what happens if some just clicks through to step 4 and then leaves.
How do I clean up the database so I only have complete orders?
Could it be problems if there are several customers are ordering at the same time?

Thanks in advance
/ Björn


Messages In This Thread
Ordering process advice needed, ?_POST vs. DB - by El Forum - 10-16-2007, 04:07 PM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-05-2007, 11:55 AM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-05-2007, 04:01 PM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-05-2007, 04:40 PM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-06-2007, 05:07 AM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-06-2007, 07:38 AM
Ordering process advice needed, ?_POST vs. DB - by El Forum - 11-06-2007, 08:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB