Re: Action link
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Action link

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Thu Apr 13 2006 - 20:00:11 CEST

Mark Towner wrote:
> Greetings,
>
> Does anyone have a solution for this problem:
>
> - I would like a PHP script to execute an action before a user clicks
> on a link (updating the value of a variable, for instance).
>
> Is there an easy way to do this?
>
> Thanks,
> Mark
>

Mark,

If I understand your question correctly, no, you can't do anything before the
user clicks on a link. PHP is server-side only, and nothing happens until the
user does something to request the page.

It sounds like you need something client-side, like javascript.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Mon May 1 02:55:36 2006