04-29-2017, 01:55 PM
Hi
Consider this example - Do not qustion the merits, its just an example...
If you look at admin_users.php, there is a manually add user panel where there is a dropdown box for the permission group to choose when creating a new user...
Now, say I had another dropdown box which was autopopulated based on information from a table, much the same way the groups were autopopulated to the dropdown box. What I would like to achieve is as you select an option from the dropdown box, then based on your selection, say the name field and the surname field with autopopulate those text input boxes with information from the db based on the selection from the dropdown box, and if you choose another option from the dropdown box, then again the text fields will update with the correct data.
How would one achieve this?
Consider this example - Do not qustion the merits, its just an example...
If you look at admin_users.php, there is a manually add user panel where there is a dropdown box for the permission group to choose when creating a new user...
Now, say I had another dropdown box which was autopopulated based on information from a table, much the same way the groups were autopopulated to the dropdown box. What I would like to achieve is as you select an option from the dropdown box, then based on your selection, say the name field and the surname field with autopopulate those text input boxes with information from the db based on the selection from the dropdown box, and if you choose another option from the dropdown box, then again the text fields will update with the correct data.
How would one achieve this?