Anything after that is #not sent to the server in the request, since it is interpreted as a binding location on the page.
You can send them, but you need urlencodethem.
$kode = "this is a #test";
echo '<a href=../report/rptacc_det.php?kode' . $kode . '>Click</a>';
echo '<a href=../report/rptacc_det.php?kode' . urlencode($kode) . '>Click</a>';
To return the value to rptacc_det.php, you can useurldecode
$kode = urldecode($_GET['kode']);
You must do this with all the variables that you include in the URL.
source
share