[solved]Query Strings and Named Anchors

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
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

[solved]Query Strings and Named Anchors

Post by neophyte »

I've got a form on my page whose action goes to a secondary page and the secondary page redirects to the orignal. When it redirects to the orignal page I want it to go back to a named anchor but it also has a query string...

Code:

http://somesite.com/#anchor?a=1&b=2


It seems that the anchor will work by its self but not in conjunction with the query string. I've never had this problem before and I rarely use named anchors. In this case It's a poll and I'd like to be able to click on "results" and have the page go back to the poll section so people don't have to scroll down to it. Is there something I don't know about combining named anchors and querystrings? Is it possible to combine querystrings and anchors?

Any help be much appreciated...

Thanks

note* i accidently posted this thread at the end of someone elses. OOOPS sorry!
_________________
Last edited by neophyte on Mon Nov 22, 2004 1:31 pm, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

thanks TimVW that did it!
Post Reply