Re: Run php function with user click
| From: | Jim lucas | Date: | Fri, 31 May 2002 20:28:32 +0000 |
| Subject: | Re: Run php function with user click | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100163@lists.php.net to get a copy of this message | ||
but that would take you off the current page wouldn't it? or would you
return false?
Jim Lucas
----- Original Message -----
From: "Leotta, Natalie (NCI/IMS)" <LeottaN@ims.nci.nih.gov>
To: "'Jim lucas'" <phplist@zonedzero.net>; <sweeney@verisity.com>;
<php-general@lists.php.net>
Cc: "Dave Shacket" <dshacket@believethis.org>
Sent: Friday, May 31, 2002 1:25 PM
Subject: RE: [PHP] Run php function with user click
> JavaScript could do a similar thing with onClick.
>
> -Natalie
>
> -----Original Message-----
> From: Jim lucas [mailto:phplist@zonedzero.net]
> Sent: Friday, May 31, 2002 4:21 PM
> To: sweeney@verisity.com; php-general@lists.php.net
> Cc: Dave Shacket
> Subject: Re: [PHP] Run php function with user click
>
>
> use flash to open a tunnel to the server and run a script, therefor it
> never has to leave the current page. ::)
>
> Jim Lucas
> ----- Original Message -----
> From: "Michael Sweeney" <sweeney@verisity.com>
> To: <php-general@lists.php.net>
> Cc: "Dave Shacket" <dshacket@believethis.org>
> Sent: Friday, May 31, 2002 10:36 AM
> Subject: Re: [PHP] Run php function with user click
>
>
> > 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.
> >
> > ..michael..
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>