I am at a loss...I am still too new to coding to figure out how to accomplish the task below.
I have a dropdown list that is populated from a mysql database. My code works great - I add new entries to my database table using a form, a dropdown list on another page shows the new additions. Works fantastic!
My issue and end game...
I want to connect that dropdown list to input values in a form, that change as the dropdown list selection changes. So on the client-side, when someone wants to see the email and phone for "name" - when he/she selects the name from the dropdown list, the email and phone are populated in the email and phone form fields below.
Background...
Right now, I have two forms - a new addition form, and an update form. The new addition form is fairly self explanatory - it inputs fields into a table on my database - works fine. The update form is for review and updating. This is where the dropdown list comes into play. My update form works perfectly, when I have a cached entry up, I modify the values and the database table updates. I just can't seem to figure out how to populate it using the actual dropdown list - so I can choose another entry, and the values displayed in the form below change.
I have scoured over A LOT of code and I may be needing an onChange JS event, but I'm not proficient enough to really know. I definitely need some help!
Thank you,
Caleb