[Solved] Get what’s written in the select menu [closed]


The browser won’t send that information to the server.

Since you (presumably) wrote the HTML in the first place, you can keep a record of what values are associated with what labels.

This is usually done using a database, but you could hard code it into an associative array into the script.

Once you have a record, you can look up the submitted value in your data store.

1

solved Get what’s written in the select menu [closed]