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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to