1

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='"'" />

仍然显示get url是这样的:/login.php?event=Account&url=

如何获取 /login.php?event=Account&url=205 ..... 之类的页面

4

1 回答 1

0
<?php 
      $getUrl = $_GET['url']; 
      echo $getUrl;
?>
于 2012-07-20T08:23:29.017 回答