Então lá vai <base target="Iframe1"> <script language="javascript"> function doMe() { document.forms[0].FormCampo1.value=0; reloadValoresIframe1(); } function reloadValoresIframe1() { var produtoid = document.forms[0].produtoid.value; window.open("iframe_valores.php?cod=" + produtoid,"Iframe1"); } </script> <?php $lt="<font face='arial,verdana,helvetica' size=2><b>"; $con=ibase_connect ("localhost:/praxis.fdb", "$func", "$senha"); if (!$con) { echo "Acesso Negado!<br>"; exit; } echo" <form method='get' name='formm' target=_top action='insereprodutovenda.php'> <input type='hidden' name='processo' value='$processo'> "; ?> <form name="form1" method="post" action=""> <table width="300" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> <tr> Escolha o Produto: <select name="produtoid" value="" size="1" onChange="doMe();" onBlur="doMe();"> <?php $query=ibase_query($con,"select produto_pk,produto from produto_pk where produto like '%$produto%'"); $result = ibase_num_fields($query); if ($result="0") { echo " $query Problema durante a seleção do Produto "; } else { while ($campo=ibase_fetch_row($query)) { $clienteid=$campo[0]; $nome=$campo[1]; ?> <option value="<?=$clienteid?>"><?=$nome?></option> <?php } } echo"</select><br>"; ibase_close($con); ?> <input type="hidden" name="FormCampo1"> <input type="hidden" name="FormCampo2"> </td> </td> </tr> <tr> <p><font size='4'>Quantidade</font><input type='text' name='quantidade' size='10' value=''></p> <p><input type='submit' value='Avançar' name='B1'> <td><iframe name="Iframe1" src="iframe_valores.php" width="480" height="90" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></td> </tr> <tr> <td> </td> </tr> </form> </body> </html>