[eluser]Unknown[/eluser]
Thanks for your reply Aken,
I tried it with
Code:
$page_id = set_value('assignRole');
But still its not working.
Now what I did
I used the following code and its working fine.
Code:
<input type="checkbox" value="<?php echo($row->page_id); ?>" name="assignRole[]" <?php echo(set_checkbox('assignRole', $row->page_id));?> />
Basically I saw it later that there is a function for checkbox i.e.
Code:
set_checkbox('assignRole', $row->page_id)
which returns checked="checked" if it is checked before the form submitted.
But thanks for your prompt reply.