Hmmm... okay, so I guess you figured it out.
Just as a side note. If you have an issue with PHP you should probably post the php code rather than the html code since I can't see the php code through the url.
Also PHP is parsing before it hits the browser. Any actions you want done before it hits the browser can be done in PHP. Actions you want done after it hits the browser, such as events when someone changes a dropdown menu selection would be done in javascript.
It's good to make clear when these events are happening and which language you are dealing with otherwise the functionality that I'm hearing you say can be a bit confusing.
Abraham