I have the following url
http://www.example.com/check.php?q=498#2D83B631%3800EBD!801600D*7E3CC13
Then I try
<?php var_dump( $_GET); ?>
and
<?php
echo $my_string = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
?>
But they both seem to stop at the "#" symbol and only display 498. Is there a way to retrieve the entire 498#2D83B631%3800EBD!801600D*7E3CC13?
On the server you can get only the url until
#. If you want the value after#you need some client side script to get the url.If that is value of
qyou should encode first withurlencode(). In this way you will get all the value fromqYour url should look like: http://www.example.com/check.php?q=498%232D83B631%253800EBD!801600D*7E3CC13
To decode the url you can use
urldecode()