
February 21st, 2006, 09:44 PM
|
|
Contributing User
|
|
Join Date: Apr 2005
Posts: 207
Time spent in forums: 20 h 3 m 51 sec
Reputation Power: 4
|
|
How to insert checkbox values to mysql using php
Hi all i got a form with a few checkbox on it. User select a few of checkboxes and and press a button to write their values to db. But i do not know how to write it to mysql db. I be happy if an expert help me with that.Thanks
Note:Assuming the table has one columns which is for id value
code for check box form
Code:
<form action="./write.php" method=post >
<input type="checkbox" name="id" value="1"
<input type="checkbox" name="id" value="2"
<input type="checkbox" name="id" value="3"
<input type="submit" value="Add this/these Songs to my PlayList" name="B1">
|