note 30225 added to function.urldecode

From: Date: Tue, 11 Mar 2003 16:12:54 +0000
Subject: note 30225 added to function.urldecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-45102@lists.php.net to get a copy of this message
If you have a "html reserved word" as variable name (i.e. "reg_var") and you pass it as an argument you will get a wrong url. i.e. <a href="pippo.php?param1=&reg_var=">go</a> you will get a wrong url like this "pippo.php?param1=®_var" Simply add a space between "&" and "reg_var" and it will work! <a href="pippo.php?param1=& reg_var=">go</a> "pippo.php?param1=&%20reg_var" Works!! -- http://www.php.net/manual/en/function.urldecode.php http://master.php.net/manage/user-notes.php?action=edit+30225 http://master.php.net/manage/user-notes.php?action=delete+30225 http://master.php.net/manage/user-notes.php?action=reject+30225

« previous php.notes (#45102) next »