Set php priority on execution
<p>I have a problem, in php form I have two functions calls, one php function and another javascript one. These functions are called on a submit form. The php function is called on form submit and the javascript one is called "onclick" when the submit button is pressed.</p>

<p>How could I reach that javascript function will be executed before php function?</p>
