表示"; b.php:PHP コード $name = $_GET['名前']; エコー $na"/> 表示"; b.php:PHP コード $name = $_GET['名前']; エコー $na">
ホームページ >バックエンド開発 >PHPチュートリアル >urlencode の文字列エスケープに関する問題
urlencode の文字列エスケープに関する問題
a.php:
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $str = urlencode('张三'); echo "<a href='b.php?name={$str}'>查看</a>";
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $name = $_GET['name']; echo $name;