Hi,
I have been playing around with getting a session shopping cart to work. Yes, I used and example from a book. The problem is that it doesn't accommoodate for options of products. I figure the way that I would have to get the options to be remembered is to have them passed to an array which would them be remembered using sessions.
Now, I think it would be fairly easy if there was only one option, but there possibly could be as many as three.
here is an example of an option form:
<SELECT NAME='OptionID[]' class="input">
<option value="invalid">--Select Cover_Type--</option>
<option value='0001'>Solid ($0.00)</option>
<option value='0002'>Woven ($5.00)</option>
</SELECT><br><br><SELECT NAME='OptionID[]' class="input">
<option value="invalid">--Select Color--</option>
<option value='0003'>Red ($3.50)</option>
<option value='0004'>Green ($2.50)</option>
<option value='0005'>Blue ($2.50)</option>
<option value='0006'>Natural ($0.00)</option>
</SELECT><br><br><SELECT NAME='OptionID[]' class="input">
<option value="invalid">--Select Price_Level--</option>
<option value='0007'>1 through 10 ($58.95)</option>
<option value='0008'>11 through 50 ($50.00)</option>
<option value='0009'>51 above ($45.00)</option>
</SELECT>
Now I cannot get it to pass and echo out on the next page. Yes for my lack of programming skills. I have searched to site and looked at examples, but wasn't too sure about the multiple options like this.
Can anyone give me some help.
Thanks,
Brett