I have this ul in my form
Are you expecting the UL to send information to the form? It will not. You need to use a form input (i.e. SELECT, TEXT, TEXTAREA, RADIO, CHECKBOX, HIDDEN, etc.)
There is nothing in your UL -> LI HTML that will send data through the form. You will need to alter the code so when it outputs the active LI, it will output something like:
Then it will be passed to the form.