In PHP how can I change the query string delimiter from ? to #
I have a basic function:
<?php
if ($_GET['var'])
{echo $_GET['var'] ;}
else
{echo "default output";}
?>
but in the URL syntax I need query sting delimiter to be # (instead of ?) like this:
http://example.com/sample.php#var=foo
I’n thinking a change to php.ini ??
I can’t find documentation on this anywhere. Thanks in advance!
You need to handle that on the client side.
The hash (
#), and everything beyond it, is never sent to the server.