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

From: Date: Sat, 27 Jul 2002 02:09:13 +0000
Subject: calling user-defined php functions from <a href> tag
Groups: php.general 
Request: Send a blank email to php-general+get-109905@lists.php.net to get a copy of this message
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: ====================================================================== <html> <a href="<?php joe(); ?>"> Click here to start "function joe()". </a> <?php function joe() { $temp1=10; $temp2=20; $result=$temp1+$temp2; echo "The result of this function is: " . $result; } ?> </html> ====================================================================== 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

« previous php.general (#109905) next »