I figured it out... Just for those of you who want to know how, here is what I did. For the source of the iframe I used profile.php. Profile.php is where I submitted the query and then got the required field from the database (in this case profile stored as a text field in MySql) and used the PRINT function to show it on the page.