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!
I had written up a good sample and example, however since this is in the tutorials section, I have to toolbar to allow me to post code here on how to achieve it with the code you have. Unfortunately, I closed the the virtual machine I wrote it on, and lost the file I played with. If I get time, I'll try to rewrite it and submit some other way where I can paste it as code (too ugly to just post here)