> > page.php?sort=city > > > > $sort is empty. > > > > or is there some other obvious cause? > > register_globals ? (Since you talk about $sort and not $_GET["sort"]) over my head; are you saying perhaps I should assign the value of $sort thus: $sort = $_GET["sort"] ?