[ic] static page

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Fri Feb 15 12:34:00 2002


On Fri, Feb 15, 2002 at 11:43:07AM -0500, JPpatches0@aol.com wrote:
> i'm trying to set up multiple items on a static page but i'm having trouble 
> with the options. I'm trying to use the following:
> <FORM ACTION="http://www.airdelights.net/cgi-bin/foundation/order" 
> METHOD=POST>
> <INPUT TYPE=hidden NAME=mv_order_item VALUE="400979">
> <INPUT TYPE=hidden NAME=mv_sku VALUE="400979
> <SELECT NAME="mv_sku"><OPTION VALUE="400979-319.99">AutoFresh Select Aerosol 
> Dispenser - 319.99 ($319.99)<OPTION VALUE="400979-59.95">AutoFresh Select 
> Aerosol Dispenser - 59.95 ($59.95)</SELECT>
> <INPUT TYPE=text NAME=mv_order_quantity VALUE="">

mv_order_item and mv_order_quantity turn into arrays.  You need to make
sure that your mv_order_item[n] is the right one for mv_order_quantity[n].

This is unreliable:
> <INPUT TYPE=text NAME=mv_order_quantity VALUE="">
Some browsers will post 1, some 0, some 1 or 0 depending on how many other
items exist in form.  Better:
> <INPUT TYPE=text NAME=mv_order_quantity VALUE="1">

<SELECT NAME="mv_order_item"><OPTION VALUE="400979-319.99">AutoFresh Select Aerosol 
Dispenser - 319.99 ($319.99)<OPTION VALUE="400979-59.95">AutoFresh Select 
Aerosol Dispenser - 59.95 ($59.95)</SELECT>
<INPUT TYPE=text NAME=mv_order_quantity VALUE="1">

> 
> I can get one item to work properly but when I try to add a second item it 
> mixes the two together in the basket?  any suggestions?  is the mv_sku the 
> wrong thing to use here?  should the options be set up with <INPUT 
> TYPE=hidden NAME=mv_options?
> boy any help would be great, I've been stuck on this for days.
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux