Getting Checkbox value in php when page loads/opens -
how of php diplsy/show value/values of selected (checked) checkboxes.
<input type="checkbox" value="3" name="categorybox[]" checked onclick="clickoncategorybox($(this));"> <input type="checkbox" value="4" name="categorybox[]" onclick="clickoncategorybox($(this));">
the page loads 1 or more checkboxes selected. need echo values of selected checkboxes. know how make jquery. wander if possible php.
ps: page loads checked checkbox.
php sending html client.
the checkbox checked because html says should checked via checked
attribute.
build logic php echo values code determines if checked
attribute should set or not.
Comments
Post a Comment