form action problem
| From: | Brad Wright | Date: | Tue, 10 Jul 2001 05:33:27 +0000 |
| Subject: | form action problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57076@lists.php.net to get a copy of this message | ||
Hi all,
i want to have a submit button on a page that has a php function (on the
same page) as the action.
ie.
<form name="form1" method="post" action="<?PHP functionA()
?>" >
<input type="submit" name="Submit" value="Use functionA">
</form>
so when the 'Use functionA' button is pressed, the function 'functionA() '
is called (using php variables already defined before the form.)
Thanks
Brad