On Wednesday 22 August 2001 03:05, Chris Aitken wrote:
> I have come up with a bit of a problem
>
> I have a little funky search form on a page, and when I send the search
> data on as a URL, anything with a space is screwed up example
>
> $search = "This is a test";
> ec
$search= urlencode ($search);
urlencode - have a look on the php site.
-Original Message-
From: Chris Aitken [mailto:[EMAIL PROTECTED]]
Sent: August 22, 2001 9:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Strings with Spaces in URLS
I have come up with a bit of a problem
I have a
> $search = "This is a test";
> echo "http://www.blah.com/foo.php?search=$search>";
You'll want this:
echo "http://www.blah.com/foo.php?search=".urlencode($search).">";
^^
Jason
--
PHP General Mailing List
I have come up with a bit of a problem
I have a little funky search form on a page, and when I send the search
data on as a URL, anything with a space is screwed up example
$search = "This is a test";
echo "http://www.blah.com/foo.php?search=$search>";
and when the li
4 matches
Mail list logo