English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

And I don't mean just by embedding javascript I mean is there a way to do any type of mouse event listening just with php?

2007-03-08 04:18:18 · 5 answers · asked by retrogamer4ever 3 in Computers & Internet Programming & Design

5 answers

You can not monitor user events on the server. You can put onclick event handlers throughout the page if you would like then submit the form back to the server.

RJ

2007-03-08 04:21:56 · answer #1 · answered by Anonymous · 2 0

No.
Because PHP resides on the server and mouse click event is a client side event. You will have to use JavaScript to listen this even. And then u can send request to a php file to do whatever u want on this even.

2007-03-10 04:02:41 · answer #2 · answered by Atif Majid 3 · 0 0

PHP can be used to write desktop programs but there is no event handling in the language. That's what you need to monitor clicks.

2007-03-08 13:11:20 · answer #3 · answered by Meg W 5 · 0 1

No...

PHP is server side script so server will not know what is on

browser ....browser has to send something ..

like javascript has onclick method..

2007-03-08 12:37:51 · answer #4 · answered by gari 2 · 1 1

No, not purely PHP, JavaScript has to be there alongside.

2007-03-08 12:29:04 · answer #5 · answered by Andy T 7 · 1 1

fedest.com, questions and answers