ViralStef Posted July 1, 2006 Share Posted July 1, 2006 Hi allIs it possible to include a page that jumps to an anchor. Like: page.php#anchor.If i do include("page.php#anchor"), PHP is not able to include it.Is there a solution?Thx in advanceGrtz Quote Link to comment https://forums.phpfreaks.com/topic/13371-html-anchor-in-url-of-php-include/ Share on other sites More sharing options...
wildteen88 Posted July 1, 2006 Share Posted July 1, 2006 Dont place #anchor in the include statment but on the main URL bar instead, eg:[code]<a href="#anchor">Move ot anchor</a><?phpinclude 'page.php';?>[/code]Think of include as copy 'n' paste, as that is what it does. Quote Link to comment https://forums.phpfreaks.com/topic/13371-html-anchor-in-url-of-php-include/#findComment-51624 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.