[snip] I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: <a href="?action=alphabet&letter=A">A</a> <a href="?action=alphabet&letter=B">B</a> <a href="?action=alphabet&letter=C">C</a> etc........... [/snip]
Create an alphabet array and loop through it ... $arrayAlphabet = ('A', 'B', 'C', ...., 'Z'); for($i = 0; $i < 25; $i++){ echo "<a href=\"?action=$arrayAlphabet[$i]\">$arrayAlphabet[$i]</a>\n"; } Or something like that. The HTML is probably a little of in my example, but you should be able to work with this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php