Page 1 of 1

not sure how to ...

Posted: Tue Apr 15, 2003 11:09 am
by noeaw
I have a form in which a user selects options for a product and based on their input, a model number is produced. However, they may enter multiple options that would create multiple model numbers. I have created an 'Or' & 'And' (not || and &&) fields for option input and it is suppose to work something like this: (the numbers represent the option numbers selected)
$orOptions = array(1, 3, 5);
$andOptions = array(2, 4);

The output would produce model numbers:(inputted number on end of base number)
xx-1
xx-12
xx-14
xx-124
xx-3
xx-23
xx-34
xx-234
xx-5
xx-25
xx-45
xx-245

My problem is, I am not familar enough with programming logic and php syntax to have my script extract this data and format as needed. Any tips or samples would be so appreciated.

Thanks,

Posted: Tue Apr 15, 2003 12:07 pm
by matthiasone
Could you please post a sample of your script?