I didn't get requested page id url
===

	









  <?php
	  
  	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;
	}
    ?>
  <?php

   if ($sessionUser == 1 || $sessionSeller == 1 || $sessionadmin == 1) { ?>
    <form class="cp_form" action="article_comments_db.php" method="post" name="frm_comment" id="frm_comment">
      <div id="div_req_comment" class="cp_infopanel_off">
        <span><?= $_Reviews ?></span>:<span class="red">*</span>
        <textarea class="cp_textarea" id="req_comment" name="req_comment" onBlur="do_blur(this.id)" onFocus="do_focus(this.id)"></textarea>
        <div id="infobox_req_comment" class="cp_infobox"></div>
      </div>
      <input type="button" id="btn_submit" class="rp_button" value="<?= $_Submit ?>" onClick="validate_form('frm_comment')" />    
      <input type="hidden" name="id" value="<?php echo $id ?>" />
    </form>
  <?php } else {
    ?><br /><br /><div align="right"><input type="button" id="btn_submit" class="rp_button" value=" <?= $_Post_comment ?> " onClick="window.location.href='login.php?event=Account&url='"<?php echo getUrl(); ?>'" /></div><?php
}



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   