用urlencode()。
example:
<?php
echo '<a href="mycgi?foo=', urlencode($userinput), '">';
?>
來源網站:
PHP: urlencode - Manual
http://tw2.php.net/manual/tw/function.urlencode.php
2007年11月15日 星期四
PHP中避免用網址傳BIG5中文值時產生亂碼的方法
張貼者:
PcGrek
於
凌晨1:59
標籤: PHP, Programming Language
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言