Jump to content

[SOLVED] Header Redirect Using #anchor


seaweed

Recommended Posts

After executing a script I want to re-route the user back to the page they were on, but jump down to a specific part of the page. What is the syntax to add an anchor to the end of a php url?

 

Right now I have:

 

header("Location: project.php);

  exit;

 

Basically I want it to be:

 

header("Location: project.php#$panel");

  exit;

 

where $panel is the specific part of the page they were on.

 

The page uses anchor tags like <div id="part1"> etc.

 

 

Link to comment
https://forums.phpfreaks.com/topic/149148-solved-header-redirect-using-anchor/
Share on other sites

Archived

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

×
×
  • Create New...

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.