OK... do you get an error or what happens. I would have to have a complete description of the problem and the entire page to tell why something might not work.
Even then if it is a server configuration error of some sort there may not be a problem to spot.
I guess what I am saying is that that part of the code looks correct to me.