Ok in my database i have 2 collums, free and paid, when the check box is ticked i would like it to display a experession like '1' but it doesnt ticked or un ticked it only displays '0' can anyone help me with that please
<td>Free or Paid:</td>
<td>
<label>Free
<input type="checkbox" name="type" id="free" value="free">
</label>
<label >Paid
<input type="checkbox" name="type" id="paid" value="paid">
</label>
</td>
</tr>
<tr>
<td> </td>
<td><label for="button"></label>
<input type="submit" name="button" id="button" value="Submit">
<label for="button2"></label>
<input type="reset" name="button2" id="button2" value="Reset">
<label for="sub"></label></td>
</tr>
</table>
</form>
<?php
$sql="INSERT INTO tblbasicform (name, email, buissnes_name, location, freeyes, paidyes)
VALUES
('$_POST[name]','$_POST[email]','$_POST[buissnes_name]','$_POST[location]','$_POST[freeyes]','$_POST[paidyes]')";
if (!mysql_query($sql,$connect))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
this is some of the code i use atm