PHP can't do anything like that because the server doesn't know anything about "the cursor" - that's the browser's job.
And, curiously enough, there is a way to use Javascript to get the browser to do something on form submission: it's called the "onsubmit" event handler.
onsubmit="javascript:document.body.style.cursor='wait';"