If I understand correctly, you want to use PHP script on the client-side similiar to javascript as below?
<script>
function DoFormValidate()
{
}
</script>
<body>
<form onsubmit="DoFormValidate();">
...
</form>
<body>
The answer is likely to be negative, since PHP is a server side scripting language. However, you may use PHP to write this javascript as a part of your HTML response.
Hope the above is clear
visit me at http://www.bringitlive.com