I want a user to choose values from the Multiple Select box:
the table is:
im not sure how to insert the information as one record with the selections they choose.
Code:
<select name="service[]" id="service" size="6" multiple="multiple"> <option value="histopathology">Histopathology</option> <option value="cytology">Cytology</option> <option value="endometrial biopsy">Endometrial Biopsy</option> <option value="joint fluid">Joint Fluid</option> <option value="bone marrow">Bone Marrow</option> <option value="other">Other</option> </select>
Code:
services CREATE TABLE `services` ( `service_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_number` int(20) NOT NULL, `histo` tinyint(1) DEFAULT NULL, `cytology` tinyint(1) DEFAULT NULL, `endo` tinyint(1) DEFAULT NULL, `joint_fluid` tinyint(1) DEFAULT NULL, `bone_marrow` tinyint(1) DEFAULT NULL, `other` varchar(50) DEFAULT NULL, PRIMARY KEY (`service_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1
im not sure how to insert the information as one record with the selections they choose.
Comment