Maintain Pound Sign (#) In URL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Toot4fun
Forum Commoner
Posts: 25
Joined: Wed Dec 10, 2003 11:44 am

Maintain Pound Sign (#) In URL

Post by Toot4fun »

Is there a way to pass the # sign and its location after a form is submitted? I have some form data that is towards the bottom of a page and I'd like to jump right to it after the form is submitted, rather than have the user end up back at the top of the page.

Alternative solutions are also welcomed.
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

Post by rubberjohn »

try passing it where you declare the 'action' in the form tag

probably be better off directing to another page tho. so you can avoid getting the 'POST DATA' message and multiple form submissions

have a look at
feyd wrote:
As for the post-redirection trick, Roja wrote:Post-Redirect-Get pattern.

Solves the issues mentioned.


rj
Post Reply