November 10th, 1999, 05:35 AM
I have a Select pop-up with list of country names with a variable $Country. I pass this variable using the URL to the next page and it displays fine. When I have a link from page two to page three, the Variable is cut after a space.
(e.g) Page one I select "United States of America". Page 2 shows it ok. But, on page 3 this variable is only "United" the rest is gone.
here is the link i use:
Any help is much appreciated.
November 10th, 1999, 05:50 AM
i had the same problem when using netscape (msie 5 doesn't seem to have this "problem"). i use a simple $string2 = strtr($string1," ", "_"); to convert all (!) spaces to "_"
before posting and $string3 = strtr($string4,"_", " "); after.
hope this works...
November 10th, 1999, 05:51 AM
should be: $string3 = strtr($string2,"_", " ");
November 10th, 1999, 06:35 AM
The best way to do this is to urlencode() the variables before using them in the query string. This makes spaces and other characters that are not url friendly acceptable.