calling a function from a link?
Posted: Sat Aug 03, 2002 9:15 pm
Say I have just a simple function that just outputs a string (for now)
First I out a link that suposed to call a function but it doesnt work...?
Anyone know how to do that?
First I out a link that suposed to call a function but it doesnt work...?
Anyone know how to do that?
Code: Select all
<?
echo "<a href="$PHP_SELF?call_user_func(test,'')">Call a function</a>";
function test()
{
echo "WOW IT JUST CALLED A FUNCTION";
}
?>