php - Appending record & Making it "selected" -


I have a form that takes information on events, in addition to Fields, D.B. There are some lists made by PHP using values ​​stored in other tables.

If the user wants to add, then I want to take data from 'Quick Form', enter a new record in the appropriate table, then create that record in the Selected = "Selected" record in the drop-down list.

Which function should I use to run this? I am not asking you to code the whole thing, just looking for some signs that what should be included in it so that I can learn through it & amp;

Thank you!

Here are some suggestions:

  • First of all, you will use the function to capture events for dynamically generated HTML.

  • To change the selection options on some events, take a look at this:

  • Selecting an item from the featured options See this for:


  • Comments