문제

Even if they are quite different I'm going to compare to php predefined variables:

$_SERVER['HTTP_REFERRER']

$_SERVER['PHP_SELF']
  • the first is giving me the 'previous page' including the GET parameters (Ex. mypage.php?id=1)

  • the second one is returning let's say the 'barebone' structure of the url (Ex.mypage.php)

IS THERE ANY WAY I CAN STORE THE CURRENT PAGE PLUS THE GET PARAMETERS?

thanks

Luca

도움이 되었습니까?

해결책

You want $_SERVER["REQUEST_URI"].

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top