php中查询字符串中的post符号

php中查询字符串中的post符号,php,html,Php,Html,href='getprojmansub.php?mch_status='R&M' 它不会在querystring中传递&symbol之后的值。我如何在php中传递查询字符串中的任何符号。是否可以在php中传递查询字符串中的#$&*()之类的smbols,或者传递符号的任何语法。试试这个 $status = $_POST['mch_status']; echo htmlentities($status); 变量转储(urlencode(“M&M”); 字符串(5)“M%26M”转到。我想你想要点

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

它不会在querystring中传递&symbol之后的值。我如何在php中传递查询字符串中的任何符号。是否可以在php中传递查询字符串中的#$&*()之类的smbols,或者传递符号的任何语法。

试试这个

$status = $_POST['mch_status'];
echo htmlentities($status);
变量转储(urlencode(“M&M”); 字符串(5)“M%26M”

转到。我想你想要点什么。