RE: [PHP] javascript, php and mysql

From: Date: Sun, 27 Apr 2003 05:24:27 +0000
Subject: RE: [PHP] javascript, php and mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145397@lists.php.net to get a copy of this message
> was just given a chance to see/try a little javascript with a few simple > scripts.. its pretty cool and seems not very hard to use but is there a > way > that you can mix php/javascript in a single script? how would you use both > of them together either way it goes and does anybody know if javascript > has > any mysql functions like php does? No, it doesn't. The thing to learn first is that PHP is server side and it runs FIRST on the server. The resulting HTML and any Javascript code the PHP might have helped create is then sent to the user's browser. At that point, any Javascript can execute based upon the user's actions. PHP is DONE at that point and there can be no communication back to PHP with Javascript. If you want PHP to do something, you must somehow request a new page and have the server process some PHP. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#145397) next »