Have this code:
--------------------- Code Start ------------------
if ( isset( $_GET[‘GetLetter’] ))
{
setcookie(“AdminLetter”, $_GET[‘GetLetter’] );
} else {
setcookie(“AdminLetter”, ‘A’ );
}
if ( isset($_COOKIE[“AdminLetter”]))
{
$letter = $_COOKIE[“AdminLetter”];
} else {
$letter = ‘A’;
}
– select from db etc. –
--------------------- Code End ------------------
Letters across top with URL for the page and parameter GetLetter
Lets user select a letter and then retrieve all individuals whose name starts with that letter.
Problem - doing it this way requires 2 clicks to get the results. Example: to retrieve “B” names you need to click the B menu item twice.