anyway, it would be a good idea to output select-boxes with the help of a function. so you wouldn't have to put all these ugly if statements into every line of your HTML code.
try something like this (have no working PHP environment here, so there may be an error in it... g)
function htmlSelect( $name, $keyValues, $selectKey )
{
$s = "<select name=\"{$name}\">\n";
while (list($key, $value) = each($selectValues) )
{
$selected = '';
if( $key == $selectKey )
{
$selected = ' selected';
}
$s .= "<option value=\"{$key}\"{$selected}>{$value}</option>\n";
}
$s .= "</select>\n";
return $s;
}
$selectValues = { 'blue' => 'Blue',
'green' => 'Green',
'gray' => 'Gray' };
echo htmlSelect( 'eyeColor', $selectValues, $_POST['eyeColor'] );
With that function you just have to use the array and the function call in your HTML code
hope that helps,
tREXX