How to detect when and button is push on a site

How to detect when and button is push on a site

am 07.01.2008 07:51:39 von wqmmnm

How can I detect when a user presses buttons on a php site

Re: How to detect when and button is push on a site

am 07.01.2008 09:08:11 von Janwillem Borleffs

wqmmnm schreef:
> How can I detect when a user presses buttons on a php site

By capturing the value of the button's name attribute through the
$_POST, $_GET or $_REQUEST super globals.


JW

Re: How to detect when and button is push on a site

am 07.01.2008 11:32:28 von Jonas Werres

Janwillem Borleffs schrieb:
> wqmmnm schreef:
>> How can I detect when a user presses buttons on a php site
>
> By capturing the value of the button's name attribute through the
> $_POST, $_GET or $_REQUEST super globals.

Although this might not be what the OT want, because this normally
includes a page reload.
Im not sure if the OT knows, that basically, the PHP of the actual page
is through in the moment the user sees it. I think he looks for Ajax/JS

Re: How to detect when and button is push on a site

am 07.01.2008 13:07:18 von rf

"wqmmnm" wrote in message
news:9d24abeb-f887-4e03-ab54-0c7bdcc51c82@s8g2000prg.googleg roups.com...
> How can I detect when a user presses buttons on a php site

a) There is no such thing as a PHP site. There may be such a thing as a
"site" where each page is the output of a PHP script.

b) What button?

--
Richard.

Re: How to detect when and button is push on a site

am 07.01.2008 13:17:38 von colin.mckinnon

On 7 Jan, 10:32, Jonas Werres wrote:
> Janwillem Borleffs schrieb:
>
> > wqmmnm schreef:
> >> How can I detect when a user presses buttons on a php site
>
> > By capturing the value of the button's name attribute through the
> > $_POST, $_GET or $_REQUEST super globals.
>
> Although this might not be what the OT want, because this normally
> includes a page reload.
> Im not sure if the OT knows, that basically, the PHP of the actual page
> is through in the moment the user sees it. I think he looks for Ajax/JS

There's so little information its hard to tell what the OP's looking
for - maybe he wants to measure how long the round trip time is - or
something else.

C.