Entering Values into dropdown and Saving
Is it possible for entering values into dro开发者_C百科pdown and saving that values to DB? If yes please help me by giving the code for that.
A dropdown? Like a select form field? It is possible. After the form posts, you can check the values and do sql inserts as you wish. Of course cleaning and validating the data is on you though.
When a form posts back a drop down list field, I thought that only the selected value was posted back.
If that is the case, how are your values getting into the drop down list? If they are being added client-side, then they won't all make it back to the server.
精彩评论