Posted by Geoff Berrow on 09/26/05 02:48
I noticed that Message-ID: <mHDZe.190667$wr.164531@clgrps12> from
Christa Lee contained the following:
>Hi there,
>thanks for the response. It looks like it might work for me but will it work
>for a product where I need to store the size, colour and quantity? For
>example, what if someone orders a large blue sweater and then the same
>sweater except also in green and XL?
Why not?
if(isset($_POST['qty'])){
$_SESSION['quantity'][$_GET['product_id']]=$_POST['qty'];
$_SESSION['price'][$_GET['product_id']=$_POST['price'];
$_SESSION['colour'][$_GET['product_id']]=$_POST['colour'];
$_SESSION['size'][$_GET['product_id']=$_POST['size'];
....
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|