0

href='getprojmansub.php?mch_status='R&M'

It do not pass the value after & symbol in querystring how i can pass any symbol in query string in php.Is it posible to pass smbols like # $ & * ( ) in query string in php.or any syntax for passing symbols.

user2881770
  • 45
  • 1
  • 9
  • Go to [this link](http://stackoverflow.com/questions/16622504/escaping-ampersand-in-url) . I think there is something you want. – fortegente Nov 12 '13 at 07:29

2 Answers2

0

Try this

$status = $_POST['mch_status'];
echo htmlentities($status);
Sridhar R
  • 20,190
  • 6
  • 38
  • 35
0

var_dump(urlencode("M&M")); string(5) "M%26M"