I am coming from asp.net and in asp.net you have the onclick event that is triggered when you press the button.. in that event you could write your code that you want to be executed...
But in PHP there is no such mechanism...
Whats the best practice to initiate a link and pass it url variables..
Do I put a javascript function in the onclick that will do the work for me (go to the server and execute the code..
<script type="text/javascript>
function Javascript()
{
//what do you do here..how can you make the javascript go back to ther server..
// or initialize a link say.. http://home.com?newVariable=2
}
</script>