JavaScript runs on the client, PHP runs at the server. PHP cannot access client side events directly.
JavaScript cannot access the database (actually it can through Internet Explorer, but that's different story...) You'll use a combo of both languages. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -----Original Message----- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Saturday January 12, 2002 1:37 PM To: [EMAIL PROTECTED] Subject: [PHP] Event based applications? Hi, I am about to make an homepage. It is going to be very event based. When the user presses different buttons different functions should be called. At the same time I am going to use a database to store some data. My question is: Should I use PHP or JavaScripts? I would like to have a server based page, but PHP doesn't support the event driven methods like JavaScripts. Please send your comments, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]