Re: PHP calling Javascript

From: Date: Fri, 13 Jul 2001 18:36:47 +0000
Subject: Re: PHP calling Javascript
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10398@lists.php.net to get a copy of this message
"Kevin Johnson" <kevin.johnson@erogo.com> wrote in message news:BF0FEA97965BD511BB6B0000D11A0442011CC7@exchange.erogo.com... > > I was wondering how to call a javascript function within PHP? > Any ideas of solutions. You can't, at least not in the way you seem to mean. PHP runs on the server, JavaScript on the client. PHP finishes completely before JavaScript starts. The two can't interact as such. What you CAN do is use PHP to create a page such that the JavaScript function will get run.

« previous php.db (#10398) next »