No, PHP does not work like Javascript. You will have to either reload the page on submit or send the contents to a different page.
Craig suggested reloading the same page, but passing a value such as:
INPUT TYPE=HIDDEN NAME="functoggle" VALUE="1"
Then, when the page is reloaded, have PHP check for the value of functoggle and execute the function go() if equal to 1.
Jon