It's actually a problem with your browser. I see the explanation plain as day.
To elaborate further I suggest checking out This Site
That would be the basic structure of the form you are talking about. You would need to add "onBlur" events that would call the AJAX function that would execute a PHP script to write to the MySQL database and then refresh the division that contains the listbox.