Honestly, I have a tremendous doubt right now. I just gave this answer here in stackoverflow:
In this answer, I teach that, to refer to the previous page, we should use the variable $_SERVER['HTTP_REFERER']
. I even did tests before, because as usual I always wonder if it is with one or two letters R
;
My confusion increased when I came across this on Javascript
:
document.referrer; // What? Com dois R?
And I know that both PHP and Javascript both refer to the previous page.
So, confused, I would like to know: The right one is R er or RR er?