RE: [PHP] Run php function with user click
| From: | Jay Blanchard | Date: | Fri, 31 May 2002 18:08:03 +0000 |
| Subject: | RE: [PHP] Run php function with user click | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100140@lists.php.net to get a copy of this message | ||
[snip]
On Friday 31 May 2002 05:44, you wrote:
> I know how to have my php code run a function within itself. But is there
a
> way that upon an event (clicking a button, etc.), you could run a php
> function without having to go to a new page?
No. PHP is a server side application. The only way to run a function or php
program is to send a request to the server. When you do that the server
sends
back a response and your broswer refreshes the page.
[/snip]
You could put up a borderless IFRAME and refresh the associated file :)
Jay