how to check all the checkboxes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
venkatesh.svs
Forum Newbie
Posts: 12
Joined: Wed Jan 06, 2010 1:30 am

how to check all the checkboxes

Post by venkatesh.svs »

how to check all the checkboxes of only read messages.



Like inbox i have some records.
with in those records i have some read messages and some unread messages
i provide a status column like 'read' and 'unread' in the data base for that column.

now i want to check only the read messages
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: how to check all the checkboxes

Post by dejvos »

I think, you have to use Javascript or do it on server side but server side solution is uglier - you may reload the page with checked attribute in your checkbox tag.

So I would use Javascript.
Post Reply