Hi
Your form is submitting to a different page, so the code at the top won't get processed. You need to put that code on the page that the form is submitting to (Ex_Select.php).
Effectively you are telling your page to send your form contents to a different page, but then you are asking it to run code on the same page.
Cheers
Ian