Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001071

[PHP-DB] Re: PHP calling Javascript From: Hugh Bothwell (hugh_bothwell <email protected>)
Date: 07/13/01

"Kevin Johnson" <kevin.johnson <email protected>> wrote in message
news:BF0FEA97965BD511BB6B0000D11A0442011CC7 <email protected>
>
> 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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>