bccamp
Technical User
- Jan 20, 2005
- 69
I'm having a problem making a named anchor work in ie7. My process works fine in Firefox, but my target audience can't use Firefox (corporate types). Anyway, I have a PHP function called 'Calculate' in 4 positions in my document. I want the page to return to that position when 'Calculate' is activated.
The code for the php function is:
Then for the anchor positions the code is:
Like I said, this works in Firefox, but not IE. Can someone help me clean this up if necessary and make it work in IE?
The code for the php function is:
Code:
function calculate($x){
echo "<a href=\#calc$x\">";
echo "<input type\"submit\" name=\"submit"\ value=\"Calculate\"></a>";
}
Code:
<a name="calc1"></a><? calculate(1); ?>
html
html
more html
some php
<a name="calc2"></a><? calculate(2); ?>
Like I said, this works in Firefox, but not IE. Can someone help me clean this up if necessary and make it work in IE?