"NAMED ANCHORS"

A

Anonymous

Guest
Named anchors are a HTML thing and have nothing to do with PHP. You can't "make them" in PHP -- you can only make PHP output the HTML to make them. Maybe if you could show us the code you've tried to use.
 
You just need to use '#' and after the name of the tag where you want to link to. I mean every tag with a name/id property, can be your anchor!

Example:
Code:
<a href="<? $_SERVER[PHP_SELF]; ?>#whatever">This will go to 1st tag with that name/id!</a>

....

<table id="whatever"><tr>......
If you´re using php, $PHP_SELF will help you, because it refers to the current page !
 
Hunn... i don´t see what you´re doing or what you wanna do.
Can you please show me your code, or... a bit of it!?
 
Ok. So you can use an 'a', div, 'span'... tag in your text to idenfity it!
Example:
Code:
<a name="red">Red: TXT GOES HERE TXT GOES HERE</a>
Now it will work and if you wanna make a link to all those listed names, you´ll do the same thing for each one!
 
Back
Top