On Thu, 2010-02-25 at 13:32 -0500, Alice Wei wrote:

> Hi, 
> 
>     I have done something wrong here, because when I have my variables 
> declared in my PHP:
> 
>    $people_from = $_GET['people_from'];
>    $state_colors= $_GET['state_colors'];
> 
>   I get this url: http://localhost/generic.php?people_from=Adair, OK-Alfalfa, 
> OK-Atoka, OK-Beaver, OK-Beckham, OK-Blaine, OK-Bryan, OK-Caddo, OK-Canadian, 
> OK-Carter, OK-Cherokee, OK-Choctaw, OK-Cimarron, OK-Cleveland, OK-Coal, 
> OK&state_colors=#FFFFCC-#FFFFCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC
> 
>  The result? I don't get any colors on the screen as I have here in the url. 
> However, if I do:
>    
> $people_from = "Adair, OK-Alfalfa, OK-Atoka, OK-Beaver, OK-Beckham, 
> OK-Blaine, OK-Bryan, OK-Caddo, OK-Canadian, OK-Carter, OK-Cherokee, 
> OK-Choctaw, OK-Cimarron, OK-Cleveland, OK-Coal, OK";
> $state_colors= 
> "#FFFFCC-#FFFFCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC-#FFCCCC";
> 
> I get the correct result. In total, there are 77 entries (I only put 15 
> here). Is there a length limit for what I pass to the url? If not, how come 
> there are no colors showing up in my image as I desired according to my url?
> 
> Thanks for your help.
> 
> Alice
>                                         
> _________________________________________________________________
> Hotmail: Free, trusted and rich email service.
> http://clk.atdmt.com/GBL/go/201469228/direct/01/


OK, a few things wrong with your URL here. URL's cant contain spaces,
they have to be escaped as %20. Also, the # is a special character in a
URL, as it marks an anchor in a page.

Lastly, yes, there is a limit to data sent in a URL. It varies slightly
from browser to browser, but I would try not to go over a couple of
hundred characters.

Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to