slight adjustment to that code..
<?php
$locations=array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
// set the default to a
$letter_num = 0;
// 26 different locations?
for($locationcount=0; $locationcount<26; $locationcount++){
$data=$HTTP_GET_VARS['location'];
if($data == $locations[$letter_num]){
echo "$locations[$letter_num]";
}
// keep the counting going till it gets to 26 🙂
$letter_num++;
}
?>