can i redirect to a named anchor and retain the get parameter ?
I have a contact form at the bottom of a page on a site I am developing.
The contact form is accessed from the menu via a named anchor (eg <a id="contactform"></a>)
If a user doesn't complete the form correctly, they are redirected to the page, but it would be preferable to redirect them to the anchor rather than the top of the page.
By default the redirect in the server validation block is this...
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
If i change it to
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."#contactform"."?invalid=true";
the redirect doesn't scroll to the anchor, though the url is correct. but if I use
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."#contactform";
the redirect goes back to the anchor, (but i dont have the get parameter)