RE: [PHP] Distinguishing between a mouse click and a refresh?
| From: | Jay Blanchard | Date: | Mon, 04 Dec 2006 21:08:13 +0000 |
| Subject: | RE: [PHP] Distinguishing between a mouse click and a refresh? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245497@lists.php.net to get a copy of this message | ||
[snip]
Is there any way for PHP to know whether it is being called due to a
browser refresh versus a mouse click? I think the answer is no but I
just want to be sure. Thanks.
[/snip]
Not unless you specifically capture and send a JavaScript onClick event.
A mouse click typically takes you somewhere else, so if you are using
for a page refresh you could capture and send a JavaScript variable to
the PHP script.