# PHP Lists and Fields problem

**URL:** <https://forum.kirupa.com/t/php-lists-and-fields-problem/181914>\
**Category:** programming\
**Created:** [March 14, 2006, 6:43am UTC](https://forum.kirupa.com/t/php-lists-and-fields-problem/181914 "2006-03-14T06:43:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![denizengt](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@denizengt](https://forum.kirupa.com/u/denizengt)\
**Post date:** [March 14, 2006, 6:43am UTC](https://forum.kirupa.com/t/php-lists-and-fields-problem/181914/1 "2006-03-14T06:43:20Z")

</div>

I have a page called “Edit\_Entry.php”. Within this I have a drop down list of names from a simple addressbook table in my database. This table contains simply, a name and a number.

I have two text fields in the page below the drop down list named “name” and “number”.

What I’m trying to do, is when you select a name from the list, the two text fields automatically display the name and number associated with this. I have an edit button, so the user can edit these text fields contents and then submit it back into the database, therefore updating the entry.

My issue is, I don’t know how to automatically update those two text feilds with the details associated with the selected name in the drop down list.

Can anyone give me some assistance?
