From 3d378b1fc634f5def5399bee35f11752a5929e1c Mon Sep 17 00:00:00 2001
From: Derek Allard
Permits you to display a checkbox in the state it was submitted. The first parameter must contain the name of the checkbox, the second parameter must contain its value. Example:
-<input type="checkbox" name="mycheck" value="1" <?= $this->validation->set_checkbox('mycheck', 1); ?> />
+<input type="checkbox" name="mycheck" value="1" <?= $this->validation->set_checkbox('mycheck', '1'); ?> />
Permits you to display radio buttons in the state they were submitted. The first parameter must contain the name of the radio button, the second parameter must contain its value. Example:
-<input type="radio" name="myradio" value="1" <?= $this->validation->set_radio('myradio', 1); ?> />
+<input type="radio" name="myradio" value="1" <?= $this->validation->set_radio('myradio', '1'); ?> />
--
cgit v1.2.3-24-g4f1b