Search code examples
phpquery-stringrequest.querystring

# tag On Php QueryString Not Working


I am facing a problem with passing query string. In my query string the value containing a # tag when i use $_REQUEST['string'] its only return the value which is write before of # tag. There is any way to solve this problem...

My Problem is

     localhost/index.php?string=adc#123

Value i get using

     $_REQUEST['string'] 

is only abc value after # tag not capture.

please suggest me solution for this problem...


Solution

  • use urlencode($string) before sending in php file.