[EMAIL PROTECTED] wrote:
>
> ------------------------------------
> Hi Wade,
>
> $division['math'] = "Math";
> $division['arts'] = "Arts";
> $division['science'] = "Science";
>
> echo('<select name="division">' . "\n");
>
> foreach($division as $key => $value)
> {
> echo('<option value="' . $key . '" label="' . $value . '"');
> if($_POST['division'] == $key)
> {
> echo(' selected="selected"');
> }
> echo('>' . $value . '</option>' . "\n");
> }
> echo('</select>' . "\n");
>
>
> Just one or two things. I probably have the keys and values back to front
> and remember that php does not allow dots in key names but HTML does.
>
20080731 1312 GMT-6
This is exactly what I needed. Thanks.
Wade