Hie everybody, Iam trying to insert multiple rows into a table at the same time. The form fields of the rows are defined as checkboxes in html. For example it requires a person to enter his qualifications by ticking appropriate checkboxes. Now a person may tick more than one checkbox, and each of the selected values shouuld be stored as a separate tuple/row/column in the database . How can I do that?
Iam using php and mysql.
Any help guys?
ttchiwandire
0
Newbie Poster
Recommended Answers
Jump to PostSimply test using php if the checkbox was selected
if(isset($_POST['check-box-name'])){ //Do something }
From there you can proceed with inserting the values to the database. Test for each checkbox
Happy times!
All 4 Replies
sureronald
0
Junior Poster
network18
15
Practically a Master Poster
ttchiwandire
0
Newbie Poster
network18
15
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.