Re: Calling PHP functions from within javascript

From: Date: Thu, 13 Nov 2003 06:51:40 +0000
Subject: Re: Calling PHP functions from within javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169439@lists.php.net to get a copy of this message
First thing is, it's possible, i've done it in the past myself, it's just not working due to some reason. Second, functioning cann't be achieved with javascript, cauz it's DB related. anyway thanx for ur reply Nitin ----- Original Message ----- From: "Jake McHenry" <linux@nittanytravel.com> To: <php-general@lists.php.net> Sent: Thursday, November 13, 2003 12:16 PM Subject: RE: [PHP] Calling PHP functions from within javascript > > -----Original Message----- > > From: Nitin [mailto:nitinmehta@kappa.net.in] > > Sent: Thursday, November 13, 2003 1:35 AM > > To: PHP-General > > Subject: [PHP] Calling PHP functions from within javascript > > > > > > 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 > > > > Someone correct me if I'm wrong, but this isn't possible unless you > have your javascript continuously refreshing the page, and changing > the url, or posting data. PHP is server side, so the only way for php > script to be executed is when the page loads. It might be more > productive if you create the functions you want executed in javascript > instead of php. > > > > Thanks, > > Jake McHenry > Nittany Travel MIS Coordinator > http://www.nittanytravel.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#169439) next »