Thanks, yes it does, but I have 4 positions of 'Calculate'. I tried to set $m="#calc$x" within the function, then use $_Server['PHP_SELF']."$m" but can't get the variable to carry over to the browser once it reloads.
With my current code, when I highlight 'Calculate' in FF, I get the whole link...