> $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 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]
- RE: [PHP] Strings with Spaces in URLS Jason Murray
- RE: [PHP] Strings with Spaces in URLS Lawrence . Sheed