Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Multiple choice array?


Message #1 by Jefferis Peterson <jefferis@p...> on Tue, 17 Apr 2001 21:54:30 -0400
Jeff,

Your problem is not php,  MySQL, or HTML.
It is a design problem.  You must first prioritize the choices.

The object here seems to be collect the orders one at a time.

After a particular style is selected by the customer, present the customer with
choices;
Choice 1)    Men's Size/Womon's Size
Choice 2)    What size (if a man present those sizes, if a woman present those
sizes)
Choice 3)    Enter quantity

Confirm this info and write it to a database or array. Show the contents of the
database or array and offer the customer another choice session. Loop this
session until the customer is done.  Llet them click on a done and submit to
the next step.

You do not have to offer all elements of the three categories (type
(sex),size,quan) all at once.  The customer will only order one item at a
time.  Present the select of all shoes instock then let them select type,size,
and quan.

There is a self referencing technique that would work very well here.

I this helps.

Richard D. Williams

Jefferis Peterson wrote:

> Adam
>
> >Not quite sure what you are looking to do.  Track inventory?  Or just keep
> >track of combinations?
> >
> >Adam Lang
>
> I am just trying to keep track of combinations.  I had a friend tell me
> it is a form submit problem not a php problem.
>
> But I still can't figure out how to anticipate a multiple order, with one
> form and 3 variables:
>
> e.g.:  choice one  mens or womens [ I could create separate fields for
> gender based orders]
> Choice 2:  shoe size 6, 7,8, 9, 10, 11, 12 etc.
> Choice 3 - quantity.
>
> What I want to be able to do is have a person select perhaps:
>
> mens size 7 qty 1
> mens size 8 qty 2
> womens size 8 qty 1
>
> on one order.  Right now, I am limited to having only 1 shoe size with a
> list and quantity.  The problem is that multiple select lists will not
> help since, you have to the shoe size associated with the quantity...
>
> I was trying to think of a more elegant way than an exhaustive list  of
> having each of 8 sizes followed by a quantity. It would make the order
> page way too long...
>
> Jeff
>
> --
> Jefferis Kent Peterson
> www.PetersonSales.net
> Flash, Web Design and Marketing
> ICQ 19112253
> _______
> "Happy is the person who finds wisdom, and the one who gets
> understanding, for the gain from it is better than gain from silver and
> its profit better than gold."  - Proverbs 3:13,14.
>


  Return to Index