Looking at this code, I'm not sure you understand what do your want to obtain and how PHP (or rather Web) works. You page content has nothing to do with PHP until you send some HTTP request to the server. You can do one of the following: 1) wrap your control in
<form>
and submit a whole form with the method "POST"; process the POST data on the server side, recognize elements by their
<name>
attribute values; 2) use JavaScript to read the value of some controls and AJAX to send required HTTP request to the server immediately.
Both methods require knowledge of PHP API and the second one requires JavaScript. Please see:
http://www.w3schools.com/php/php_post.asp[
^],
http://en.wikipedia.org/wiki/Ajax_%28programming%29[
^],
http://en.wikipedia.org/wiki/XMLHttpRequest[
^],
http://www.w3schools.com/ajax/default.asp[
^],
http://www.w3schools.com/php/php_ajax_php.asp[
^],
http://www.w3schools.com/js/default.asp[
^].
Please consider the articles referenced above as a starting point. Have fun.
—SA