ok.... I have a function named go(), how do I get it to run when I press a form button? this is what I have, but it doesn't work:
<input type="button" name="button" value="Enter info" onclick="<? go() ?>">
please help quicly, it's urgent
That will not work. You can run a JAVASCRIPT function in the browser, or you can POST the form to a php page on the server. But you cannopt run a php function in the browser.
ack! but I need some php code to run when a button is pressed :/
what do I do?
You could set a variable like "button_pressed" from 0 to 1 and have the form post into itself and check the variable, if the variable is set to 1 have it run your code