Use the urlencode() function.

Or at the very least use str_replace.

And by the way, the ereg_replace() you have works fine.  You must be doing
something silly.

-Rasmus

On Wed, 25 Jul 2001, Clayton Dukes wrote:

>
>
> Can someone tell me why this doesn't work?
>
> $home_street = ereg_replace (" " , "+" , $home_street);
>
> The input is "123 happy trail"
> I need the output to be "123+happy+trail"
>
> Thanks,
> Clayton
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to