Hi All,
I have been able to insert a checkbox value into my database. The problem i am now facing is how to retrieve the value of the checkbox in the form of a TICK.
Your help will be much appreciated.
Regards.
Hi All,
I have been able to insert a checkbox value into my database. The problem i am now facing is how to retrieve the value of the checkbox in the form of a TICK.
Your help will be much appreciated.
Regards.
You could do it like this
PHP Code:<input type="checkbox" value="checked?
<?php
if ($value_from_db == 1) {
echo "checked" }
?>
/>
Corrections to my coding/thoughts welcome.
Bookmarks