http://php.net/manual/en/function.urlencode.php
Should get you what you need :)
Dan
--
http://chrome.me.uk
-Original Message-
From: Bing Du [mailto:[EMAIL PROTECTED]
Sent: 24 April 2006 22:42
To: php-general@lists.php.net
Subject: [PHP] how to keep spaces in parameters in URL?
Try
print(a href='/index.php?name=$name'Foo Bar/a);
Jeremy Schreckhise, M.B.A.
Hello,
==
?php
$name = 'foo bar';
echo a href=/index.php?name=. $name .Foo Bar/a; ? ==
Then the URL showed up at the bottom border of the browser has 'name=foo'.
What should I do to have 'name=foo bar' in the
2 matches
Mail list logo