Basically what I'm trying to do is to execute a piece of code or a function once a button in clicked. I don't have any html form that sends the request and I don't want the page to reload.
Example: If I click the button named Hello I want to execute the next piece of code in php
echo 'Welcome '.$user.' !';
Later edit: I didn't said that i don't want to use AJAX, and YES, I know that PHP is serverside.