Re: calling user-defined php functions from <a href> tag

From: Date: Sat, 27 Jul 2002 05:17:50 +0000
Subject: Re: calling user-defined php functions from <a href> tag
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109929@lists.php.net to get a copy of this message
Check out http://www.faqts.com/knowledge_base/view.phtml/aid/277/fid/40 Essentially you'll want to use this this combined with get variables hard coded into your url. For example: <a href="script.php?action=function1">function 1</a> <a href="script.php?action=function2">function 2</a> At 11:13 PM 7/26/2002 -0400, Bob Lockie wrote:
--Original Message Text--- From: Michael Date: Fri, 26 Jul 2002 21:09:13 -0500 (EST) Hi, everyone. There MUST be some creative way to call a user-defined PHP function from an <a href> tag. Does anyone have any suggestions? For example: ====================================================================== "> Click here to start "function joe()". ====================================================================== So, if the user clicks on the link, he'll see: "The result of this function is: 20" Any ideas? Any help would be VERY much appreciated. Thanks! -- Michael It is not possible to do it in one step. The web server parses ALL the PHP code, generates HTML, sends it to the browser.


« previous php.general (#109929) next »