Set service price in select [closed]

0

I have a question, I have a table of requests id, name, request, value, date ... and in my page I have a form with select, I would like when I select an option it sends db the name of the I would like to know if there is any way to do this in an if for each value?

    
asked by anonymous 23.02.2017 / 04:52

1 answer

1

Each html element can only send a single value to its target, to do what it wants, there are a few ways:

  • Use other inputs in the page (hidden or even text) and these receive values by javascript with the information for each select.
  • Use a value in each compound option, that is, the value, the name, each field that you want to send, with some form of separation Ex: (R $ 1.00) (my order) (... ) and then separate at the other end.
  • 23.02.2017 / 13:18