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;
echo a
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 a href=http://www.blah.com/foo.php?search=$search;
and when the
$search = This is a test;
echo a href=http://www.blah.com/foo.php?search=$search;
You'll want this:
echo a href=http://www.blah.com/foo.php?search=.urlencode($search).;
^^
Jason
--
PHP General Mailing
$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
4 matches
Mail list logo