Forum Moderators: coopster
Welcome to WebmasterWorld!
JavaScript / AJAX is the way to go for what you are asking.
With a PHP solution you will have to reload the entire page to get the information into div B, with AJAX you can insert the information from an HTML file into div B without reloading div A or the entire page.