Jump to content

Archived

This topic is now archived and is closed to further replies.

ViralStef

HTML anchor in URL of PHP include

Recommended Posts

Hi all

Is 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 advance
Grtz

Share this post


Link to post
Share on other sites
Dont place #anchor in the include statment but on the main URL bar instead, eg:
[code]<a href="#anchor">Move ot anchor</a>
<?php

include 'page.php';

?>[/code]
Think of include as copy 'n' paste, as that is what it does.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.