hmm....do again as:
<?
function functionA()
{
// your function goes here....
}
if (isset($usefunctiona))
{
functionA();
}
?>
<html>
<body>
<form name="form1" method="post" action="<?=$PHP_SELF?>" >
<input type="submit" name="usefunctiona" value="Use functionA">
</form>
</body>
</html>
//elias!
"Brad Wright" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]