Below you can see the code I have so far in PHP which creates the code I want to display as an HTML object. However, I have no idea how to resize this object to the size of the content. I have found hacks for iframes to do this but I have not been able to find anything for the object element. I suspect it's out there but "object" is such a common word it's hard to get relevant search results.
I've attached the code I have so far. It's PHP but it should be obvious what HTML it creates.
$source = 'http://www.domain.com/searchnew.aspx';
$backup_content = '<p>Search New</p>';
$type = 'type="text/html"';
$type_ie = 'classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13"';
<object $type_ie data="$source">
<!--[if !IE]> <-->
<object $type data="$source">