button events wiht php
Posted: Sun Mar 16, 2008 12:29 am
consider the following code .....
<form name="form1" action="" method="post">
<input type="button" name="mybutton" onclick="<?php a_php_function(); ?>;
form1.submit()">
</form>
I want to run a php function when the button is clicked and before the form
is submitted. Does anyone know how this can be done?
<form name="form1" action="" method="post">
<input type="button" name="mybutton" onclick="<?php a_php_function(); ?>;
form1.submit()">
</form>
I want to run a php function when the button is clicked and before the form
is submitted. Does anyone know how this can be done?