the code goes like this... the object passed is a result object...
it is not that great...
function displayRadio($res,$even="#DEB887",$odd="#FFE4B5")
{
?>
<script language="JavaScript1.2">
x = window.open("<?=$PHP_SELF?>","<?php echo $GLOBALS["win"]?>","toolbar=0,width=400,height=200,resize=1");
</script>
<?php
$tab = "<center><table cellspacing=2 border=0 width='90%'>";
$tab .= "<tr bgcolor='brown'><th colspan ='100%' align='center'>Search resulted in the following results</th></tr>";
$ct=0;
while($row=mysql_fetch_row($res))
{
if($ct%2)
$tab .="<tr bgcolor='$odd'>";
else
$tab .="<tr bgcolor='$even'>";
for($i=0;$i<sizeof($row);$i++)
{
$tab .="<td width='3%'><input type='radio' name='id' value='$row[$i]'></td>";
$tab .="<td>".ucfirst($row[$i])."</td>";
}
$tab .="</tr>";
$ct++;
}
$tab .="</table></center>";
?>
<script language="JavaScript1.2">
x.document.write("<?php echo $tab?>");
</script>
the results are displayed but cannot send to the parent window...
if you can please help me...