0

I got the string as GET value

http://example.com?author=example_2

So when I try to read author get value it gives only example part! Tell me please how can I deal with this problem?

John Baker
  • 73
  • 10
  • 2
    Possible duplicate of [How to get parameters from a URL string?](https://stackoverflow.com/questions/11480763/how-to-get-parameters-from-a-url-string) – franiis Jul 04 '19 at 08:19
  • 1
    Can you show us how you read the values? – Dharman Jul 04 '19 at 08:22
  • 1
    There's no special meaning for `_` in URLs (`+` yes, it should become a space) - so in your example `$_GET['author'] = 'example_2'` - so there's something you're not showing us. – CD001 Jul 04 '19 at 08:24
  • I am typing echo $_GET[author] to print it but it gives the part without _ sign – John Baker Jul 04 '19 at 10:12
  • Now that was my fault. I typed wrong reg ex in htaccess! – John Baker Jul 04 '19 at 10:16

0 Answers0