Week 2 - Exercise 2

This function accepts two parameters, the first (required) is a field name the second (optional) is the default value in the form of a valid United States/Canadian state abbreviation. The function generates an HTML <SELECT> box for US & Canadian states, the 'name' parameter of the <SELECT> is set to the field name paramerter passed to the function and the default value is set to 'selected' within the construct.

Enter a two letter state abbreviation: 
Enter a name for this select list:     




Back to Index of Assignments