Re: Escaping Characters - URL Encoding.

From: Date: Tue, 24 Apr 2001 21:46:51 +0000
Subject: Re: Escaping Characters - URL Encoding.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-50190@lists.php.net to get a copy of this message
H- Thank you very much! I feel kinda dumb. I think I'll take a break. 6 hours in front of a monitor is too much. 8^) Thanks for the assist. rawurlencode worked great. -Sterling Alexander Wagner wrote: > > Sterling wrote: > > $topic = "Aerospace & Commercial Space"; > > > > $link_value = str_replace("&", '%26', $topic); > > $link_value = str_replace(' ', '%20', $topic); > > This should be > $link_value = str_replace("&", '%26', $topic); > $link_value = str_replace(' ', '%20', $link_value); > > Anyway, this is this wrong way to go about it. > This line > $link_value = rawurlencode($topic); > will do the whole job. > > regards > Wagner > > -- > "In place of infinity we usually put some really big number, like 15." > - Anonymous Computer Science professor

« previous php.general (#50190) next »