href problem
Posted: Tue Apr 03, 2007 8:36 pm
Hi -
i have a main php page (mainpage.php) which loads another php page within it after clicking a link. (loadedpage.php).
My problem is all of the href links in the loadedpage.php are defaulting to the full url path of the parent page and then tacking the php variables i'm pulling in onto the end of it. In this occassion the variable being pulled from the database is the number 50.
So all of my anchor tags in the loadedpage.php which should just simply be: <a href=#50">, are now appearing as: <a href=http://myhomepage.com/mainpage.php?section=hottopics#50">.
All i want is the '#50'.
Here's an example of how the code looks: <a href="#<?=$htopicid?>">
Any help would be greatly appreciated....i just can't figure this out as to why it's doing it.
Thanks in advance.
i have a main php page (mainpage.php) which loads another php page within it after clicking a link. (loadedpage.php).
My problem is all of the href links in the loadedpage.php are defaulting to the full url path of the parent page and then tacking the php variables i'm pulling in onto the end of it. In this occassion the variable being pulled from the database is the number 50.
So all of my anchor tags in the loadedpage.php which should just simply be: <a href=#50">, are now appearing as: <a href=http://myhomepage.com/mainpage.php?section=hottopics#50">.
All i want is the '#50'.
Here's an example of how the code looks: <a href="#<?=$htopicid?>">
Any help would be greatly appreciated....i just can't figure this out as to why it's doing it.
Thanks in advance.