note 52961 rejected from function.urlencode by didou

From: Date: Thu, 19 May 2005 09:55:46 +0000
Subject: note 52961 rejected from function.urlencode by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89623@lists.php.net to get a copy of this message
Note Submitter: vampire_janus at yahoo dot com ---- re: example 2 you should do htmlentities before url encoding the thing ie echo '<a href="mypage.php?foo=' . urlencode(htmlentities($userinput)) . '">';

« previous php.notes (#89623) next »