not sure how to ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
noeaw
Forum Newbie
Posts: 1
Joined: Tue Apr 15, 2003 11:09 am

not sure how to ...

Post 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,
matthiasone
Forum Contributor
Posts: 117
Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:

Post by matthiasone »

Could you please post a sample of your script?
Post Reply