If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

php mysql dropdown lists help

I've asked this question a few years ago but lost the script, so I know it can be done.

(Protected page)
I have a contact form or add page form, using this example:

existing dropdown list (countries)
I need next to the existing dropdown list, text input box, then a add button (add your country if not listed)
then it shows in existing dropdown list after refreshing the page.

I know that from the years ago post, javascript needs to be involved once you add a new country. Below is an example code: