Replacing checkboxes with images

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
njubara
Forum Newbie
Posts: 2
Joined: Mon May 31, 2010 4:48 am

Replacing checkboxes with images

Post by njubara »

Hello!

I have a simple database with actors and movies. 3 actors, 15 movies. For each actor and for each movie there is a checkbox which if checked means that the actor was in that movie. The data is arranged in a html table which looks like this:

Image

I would like to click on the button OK corresponding to each movie and if the checkbox was checked replace it with an image (say a green checkmark when checked or a red cross when not checked).

How do I do this? Please help :(
Post Reply