Re: Calling PHP functions from within javascript
| From: | Ryan Thompson | Date: | Thu, 13 Nov 2003 06:59:10 +0000 |
| Subject: | Re: Calling PHP functions from within javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169440@lists.php.net to get a copy of this message | ||
On Thursday 13 November 2003 01:34, Nitin wrote:
> Hi all,
>
> can anybody tell me how to call PHP functions from within javascript, as I
> want my PHP function to be interactive. I need to call the function written
> in the same page, with the values selected by the user
>
> Thanx in advance
>
> Nitin
In a short answer. You can't. You can get PHP to create javascript on page
load. But you couldn't get Javascript to say..... executed a PHP db query
based on a user selection on a form. PHP is Server-side. It's all executed
before it reaches the user.
--
"I have a photographic memory. I just forgot the film" --Unknown
=============================
Ryan Thompson
rthomp@sympatico.ca
http://osgw.sourceforge.net