dimanche 6 octobre 2019

Checkbox Unchecked on Refresh Page

I know this is very simple question but this has ruined a day. Actually in wp-admin I have created checkboxes for the user to check, The user can these boxes but that becomes uncheck on the refresh page although the user has checked them. I want to remain checked on the refresh page. Anyone can guide me?

global $wpdb; $res = $wpdb->get_results("SELECT * FROM wp_posts WHERE post_status='publish' AND post_type='page'",ARRAY_A); ?> Post Title Permission

if($res){
foreach ($res as $values ) {
    ?>
    <tr>
        <td><?php echo  $values['post_title']; ?></td>
        <td><input type='checkbox' name='Accessable_Pages[]' autocomplete="off" value=<?php echo $values['ID']; ?>  ><br></td>
    </tr>
    <?php



Aucun commentaire:

Enregistrer un commentaire