Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
href='getprojmansub.php?mch_status='R&M'
它不会在查询字符串中传递 & 符号之后的值,我如何在 php 中传递查询字符串中的任何符号。是否可以在 php 中的查询字符串中传递 # $ & * ( ) 之类的符号或传递符号的任何语法。
var_dump(urlencode("M&M")); 字符串(5)“M%26M”
尝试这个
$status = $_POST['mch_status']; echo htmlentities($status);