It looks like you need to reset the $state variables each loop through so that they are all empty, hence when you get to west virginia and wisconsin they are but empties behind them
Heck, personally I'd just add another cell to the table and make it have the full name in, then just use that column of data to populate the system, since you are calling everything anyways, why work more when another column can be used and have multiple uses?? My $.02 Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php