Jump to content

php - using if statements & checkbox's


dre

Recommended Posts

hi im currently creating a program for a uni project but having some difficulty with a small bit of coding!
plz excuse my ignorance but its my first time attempting to use php.

at the moment im using php,dreamweaver and mysql,
im creating a database that stores information on mobile phones for a phone shop, what i am hoping to achieve is
when the user enters the functions of each handset (by checking the relavant checkbox's) i want dreamweaver/php to select a
category (1,2 or3 ) that the handset belongs to, then store that value into tha database.

e.g. i have seven checkbox's, each representing a differnt function of a mobile phone. If the user checks bluetooth and infrared the value '1 ' will be placed in the 'category' field of the database, if the where to check camera and mp3 player the value '2' is placed in the 'category' field...etc.

any ideas, tips, SOLUTION! will be greatly appreciated!!
Link to comment
https://forums.phpfreaks.com/topic/35742-php-using-if-statements-checkboxs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.