Re: [PHP] Strings with Spaces in URLS

2001-08-22 Thread Christian Reiniger
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

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Lawrence . Sheed
$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 l

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Jason Murray
> $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