I use the following method for switching between functions within php:
e.g.
<?php
function Step1(){
print "Hello";
print "<a href=?mode=step2>Step2</a>";
}
function Step2(){
print "Hello again";
}
switch ($mode){
case "";
Step1();
break;
case "step2";
Step2();
}
This has worked fine until I started to use PHP versions higher than 4.1.2. Any help would be greatly appreciated as I have no idea why this code no longer works.
Steve.
😕