Hi
I'm new to php coding so please excuse me if this is rubbish! 😉
I was trying to follow an example i found on a newsgroup to run a particular function on another page, but it doesnt seem to run the function. on my first page i have:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> <a href="myfunctions.php?FuncToExec=Joe">Execute Joe() function</a></p>
</body>
</html>
and in myfunctions.php
<?php
if($FuncToExec == "joe"){
joe();
}?>
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<?php
function joe() {
$temp1=10;
$temp2=20;
$result=$temp1+$temp2;
echo "The result of this function is: " . $result;
}
?>
</body>
</html>
but when i click the link on the first page it goes to an empty screen?
Any help appreciated
Thanks
Pete