thenm - Please do not hijack someone else's long-completed thread. Prefer to start a new thread of your own in the appropriate (jQuery) section of the forum. Please explain your problem clearly.
Before you do that, please read the forum rules and posting guidelines. When posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar.
It is your responsibility to die() if necessary….. - PHP Manual
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 01-27-2012 at 08:36 AM..