Hi,
I'm working on a program that sends an array built from form elements. If some of the elements aren't selected then I need to throw out the empty values in the array.
So I first only allow unique values in the array
//remove blank values
$loci=array_unique($loci);
then I arrange them
//arrange
sort($loci);
And then remove any empty ones if they exist
//remove first element if blank
if($loci[0]=='')array_shift($loci);
This works fine in IE but in Netscape it refuses to get rid of the empty value, bring me to the conlusion that it has something weird in it passed by the NS browser. Anybody know what it could be?
Thanks