veran ahora lo que quiero hacer es lo siguiente tengo un formulario como el siguiente
Código PHP:
<?php
include "menu.html";
?>
<?php require_once('Connections/giaa_con.php'); ?>
<html>
<head>
<script language="JavaScript">
function abrirVentana() {
open("clientesb.php","miVentana", "toolbar=no,directories=no,menubar=no,status=no");
}
</script>
<form name="frm" method="post" action="vent_ventnp.php">
<table bgcolor="#fffce7">
<tbody char="#C6B043">
<tr>
<td><font color="#C6B043" size="+1">Cliente*:</font></td>
<td><input type="text" name="clie"><input type="button" name="boton" value="..." onClick="abrirVentana()"></td>
<td><center><font color="#C6B043" size="+1">Fecha*:</font></center></td>
<td><input name="fecha1" type="text" id="fecha1" size="10" value="<? print date('d/m/Y'); ?>" maxlength="11" disabled="true" />
<input type="hidden" name="fe" value="<? print date('Y-m-d'); ?>">
</tr>
</tbody>
</table>
<INPUT type="submit" value="Siguiente"></font>
</form>
</body>
</html>
Código PHP:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<?php require_once('Connections/giaa_con.php'); ?>
<HTML><HEAD>
<script>
function centrar() {
iz=(screen.width-document.body.clientWidth) / 2;
de=(screen.height-document.body.clientHeight) / 2;
moveTo(iz,de);
}
</script>
<script language="JavaScript">
var seleccionado = "";
var aEdit = new Array();
<?php
$res = pg_query($giaa_con, "SELECT * FROM clientes ORDER BY paterno");
while($row = pg_fetch_array($res)){
$cla = $row['id_cliente'];
$nom = ucwords(strtolower($row['nombre']));
$pat = ucwords(strtolower($row['paterno']));
$mat = ucwords(strtolower($row['materno']));
echo $cla;
echo $pat;
echo $mat;
echo $nom;}
?>
function cambiaSel(chk){
seleccionado = chk.value;
}
function envia(){
opener.document.frm.clie.value = seleccionado;
close();
}
</script>
<TITLE>Buscar Clientes</TITLE>
</HEAD><BODY onload="centrar()">
<script language="JavaScript">
var w = 600;
var h = 600;
resizeTo(w, h);
moveTo((screen.width - w)/ 2, (screen.height - h)/ 2);
</script>
<form name="frm2"> <center>
<table boRder="1" bgcolor="#fffce7">
<tr>
<TD> </td>
<td>CLAVE </td>
<td>A. PATERNO </td>
<td>A. MATERNO </td>
<td>NOMBRE </td>
</tr>
<script language="JavaScript">
for (var i = 0; i < aEdit.length; i++)
document.write("<tr><td><input type='radio' name='ed' value='" + aEdit[i] + "' onclick='cambiaSel(this)'></td></tr>" + aEdit[i] + "<br>");
</script>
<td></td>
<tr>
</tr>
</table>
<input type="button" name="enviar" value="Enviar" onclick="envia()">
</center>
</form>
</BODY></HTML>
alguien me puede ayudar