again as:

  function functionA()
    // your function goes here....

  if (isset($usefunctiona))

 <form name="form1" method="post" action="<?=$PHP_SELF?>" >
   <input type="submit" name="usefunctiona" value="Use functionA">


"Brad Wright" <[EMAIL PROTECTED]> wrote in 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

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to