Remain status on checkbox, when refresh
New to php, and sql. But here is the thing. I have a page that displays a
table from a database, based on certain criteria. The table is loaded
anytime I refresh the page. I am using this as a list of tasks for
service.
I'va added a column with checkboxes for service-personell to mark
everytime service has been done, ie. using this as a tasklist. But when u
refresh page, or close browser to visit the page again, the checkboxes are
listed as unchecked(of course)
I was just wondering how to maintain the status of checkboxes for a
certain time? Maybe cookies? If so I need some guidance.
My php
{foreach ($list as $key => $row)
{
echo '<tr class="xcrud-row-' . $i . '"><td class
="check_row"><div><input type="checkbox" name="status"
></div></td>';
if($this->is_numbers) echo '<td class="xcrud-num">' .
($key + $start + 1) . '</td>';}
Live example :
Here
No comments:
Post a Comment