OK, I stand corrected, can you provide more details on what the problem is? you dont really say what is happening with the code snippet you provided versus what you are expecting top have happen, there's not a lot on information for me to go on.
Please provide a detailed explanation of the problem. A link if you can would help along with a copy of the page in a zip archive so I can see the code in context.