当前位置: 动力学知识库 > 问答 > 编程问答 >

php - I didn't get requested page id url

问题描述:

function getUrl() {

$url = @( $_SERVER["HTTPS"] != 'on' ) ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"];

$url .= ( $_SERVER["SERVER_PORT"] !== 80 ) ? ":".$_SERVER["SERVER_PORT"] : "";

$url .= $_SERVER["REQUEST_URI"];

return $url;

}

?>

if ($sessionUser == 1 || $sessionSeller == 1 || $sessionadmin == 1) { ?>

:*

" onClick="validate_form('frm_comment')" />

" />

" onClick="window.location.href='login.php?event=Account&url='"'" />

Still shows get url is like this : /login.php?event=Account&url=

how to get page like /login.php?event=Account&url=205 .....or anything

网友答案:
<?php 
      $getUrl = $_GET['url']; 
      echo $getUrl;
?>
分享给朋友:
您可能感兴趣的文章:
随机阅读: