Andy Levy wrote:[color=blue]
> Hi
>
> Is it possible to call a PHP function when a forms Submit button is
> pressed.
>
> Thanks
>
> AL[/color]
If you mean on the same page, no. PHP is server side. It is parsed into HTML
/ whatever before it is sent to the client. The client never sees any PHP.
Now of course, you can pass the form data to another page on the server,
which can call whatever functions it wants to process the data...
"Andy Levy" <andy_levy@hotm ail.com> wrote in message
news:<HFPEb.951 6$C71.8871@news-binary.blueyond er.co.uk>...[color=blue]
>
> Is it possible to call a PHP function when a forms Submit
> button is pressed.[/color]
Yes, if this function is in the script referred to in the form's
action attribute. No, if you want to call it when handling
onSubmit or onClick events -- those are handled on the client
side using JavaScript.
Comment