faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input : URLs and Post or Get Methods

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 20 people (65%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can I pass a string with spaces as a GET request argument?
Why does my URL that contains a blank get truncated?

Jun 9th, 1999 07:00
Nathan Wallace, Onno Benschop, Matt Allen


You need to HTML encode it before you send it as a URL

Check this out:
http://www.php.net/manual/function.urlencode.php3