i have a form and the form allows the visitor to select a color, there are 4 colors to choose from. when that color is selected i want the results page to then display a certain sku for each accessory.
i have it writing the sku on the next page, and everything works except when the color is selected the only number on the following page that displays correct is the 1st one ($skusill) all the other sku’s are ignored and default to the brown sku values. should this be a if else? am i not supposed to separate the lines with “;”…i’m lost.
please help. thanks in advance. as you can tell I am a novice (is there a level below novice?!)
[php]
{ if ($color == Cream)
$skusill=1445532;
$sku36lintel=1445554);
$sku48lintel=1445555;
$skulight=1445536;
$skuutility=1445540;
$skuhearth=1445528;
$skutrim=1445544;
$skukey=1445548;
$skuquoin=1445552;
}
{ if ($color == Grey)
$skusill=1445560;
$sku36lintel=1445582;
$sku48lintel=1445583;
$skulight=1445564;
$skuutility=1445568;
$skuhearth=1445556;
$skutrim=1445572;
$skukey=1445576;
$skuquoin=1445580;
}
{ if ($color == Natural)
$skusill=1445504;
$sku36lintel=1445526;
$sku48lintel=1445527;
$skulight=1445508;
$skuutility=1445512;
$skuhearth=1445500;
$skutrim=1445516;
$skukey=1445520;
$skuquoin=1445524;
}
{ if ($color == Brown)
$skusill=1445588;
$sku36lintel=1445610;
$sku48lintel=1445611;
$skulight=1445592;
$skuutility=1445596;
$skuhearth=1445584;
$skutrim=1445600;
$skukey=1445604;
$skuquoin=1445608;
}
[/php]