For the position we need to allow the user to select from a menu of different options
as you can see here the drop down menu has four options that the user can select from accountant receptionist
administrator and supervisor
let's start with entering our input label.
This is in the third row first column and in the third row second column we can create our select field
and to do that we'll be using the select tags
just do a bit of formatting.
We need to give our select tags a name just like we did for the input fields.
This attribute is important
we'll call it position.
Now we can create our select menu options each option should be contained within an option tag so let's
go ahead and create four options.
Just the tags for now
I'll just copy and paste that three more times
now with their option tags created let's enter the option that the user will see in the drop down menu.
The option tag also requires a value attribute this attribute identifies the value that will be attached
to each option.
Let's say for example that the users inputs will be stored into a database that only allows two characters
to identify which option the user selected in this case the user will see the option headings in full
accountant receptionist administrator and supervisor but the values that get passed onto the HP script
will only be the first two letters of each option so to set the value attribute.
We just type in value equals and because the database can only store two characters we'll use the first
two characters of each option
and that completes the first select menu we'll create the second one in the same way
so years are our next table roll.
Insert the field label is which is experience level
and we'll copy this select menu and paste it into this column
we'll call this experience and we'll just change the options
and it looks like we don't need the fourth option so I'll just go ahead and delete that
and we'll also change the values that get submitted to our HP script entry level
and very experienced.
Let's go ahead and save our file and previewed in our web browser
so that's what we have so far there.
There is the first select menu we created and here's the second.