Forum Moderators: coopster

Message Too Old, No Replies

Anchor and Form submit

How to get php to ignore the anchor

         

HeadBut

9:15 pm on Oct 3, 2004 (gmt 0)

10+ Year Member



I need an anchor on a form action to get my page to locate properly in the browser. (I do a select lookup and propogate another select). Now that I have added the anchor:
SimpleSearch.php#StateSelect
my form only reloads and doesn't perform the right action:
isset($_POST['Submit'])
is not working properly with the anchor.

Does someone know how to work with anchors and not mess up the php?

coopster

1:02 pm on Oct 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



What's not working correctly? Are you trying to pass the anchor via the link and then have PHP locate and use it? That won't work, the anchor is not sent with the url, it is kept by the browser. You can set the anchor on the server side when you fire the page back though. You may have to give us a bit more information.