PHP Lists and Fields problem

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?