php - Html combo box to database record Id -


I am absolutely sure that my problem should be a simple solution, but I am a new web developer and can I'm not quite understanding it.

On my page, I have a combo box, whose values ​​are filled with my database when the user submits the form, then how do I change the values ​​in the database to record numbers? Do you know

So far, I'm just looking for a kind of reverse lookup in my database, get the record ID, it's quite a few obvious flaws and I'm sure there should be a better way. I am used for MS Form Combo Box where record data and id are never different. But in the case of a web form, I have no way of doing many columns in the combo box as I use.

Thank you! Jeff

option element that selects The names and values ​​have both properties -

  & lt; Option value = "23434" & gt; Item name with id 23434 & lt; / Option & gt;  

In this case its value will be posted on the server and hence you do not need to reverse lookup to get the ID from the name.


Comments