Jump to content


Photo

HTML anchor in URL of PHP include


  • Please log in to reply
1 reply to this topic

#1 ViralStef

ViralStef
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 01 July 2006 - 09:53 AM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 01 July 2006 - 10:05 AM

Dont place #anchor in the include statment but on the main URL bar instead, eg:
<a href="#anchor">Move ot anchor</a>
<?php

include 'page.php';

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users