BTW: it 's pitty, I can 't redirect with apache or PHP without loosing the ancor '#section2'.
Need to redirect
mydomain.com/oldurl/view.php?page1#section2
to
mydomain.com/newurl/view.php?page1#section2
>Where do these requests originate?
From other websites.
I want to use this for reseller tracking. It 's meant to be a secret, but hell...
I can use the standard sell.php?reseller=john
but in this case
sell.php?reseller=john
sell.php?reseller=adam
sell.php?reseller=eve
will be considered...
>As for the '#'. Are you trying to get the HTML anchor from the URL?
Exactly. This is what I need. Too long to explain why, but I will be generating sections on the fly. If the visitor requests aruba.php#waterfalls
And the <a name=waterfalls> isn't there, it will be created filled with...
OK, crack this. I call it 100 dollar PHP question
Can anyone translate this piece of javascript into PHP?
<script>
document.write(document.location);
</script>
It should return the current document URL, including:
query - after the question mark ? (I would use $QUERY_STRING)
fragment - after...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.