php gerek yok jquery ile halledebilirsin örn. http://jsfiddle.net/N5fNS/