Problema con un select
Publicado por javier (27 intervenciones) el 10/01/2012 20:27:31
Hola.
Tengo este procedimiento:
<form method="post">
<select id="listasocios" onchange ="prog.php" >
<? do { ?>
<option><? echo $napellidos. "</b><br>";?></option>
<?
$numsoc=$reg['numsoc'];
$nombre=$reg['nombre'];
$ape1= $reg['ape1'];
$ape2= $reg['ape2'];
$napellidos = $numsoc."," .$nombre. ", ". $ape1. ", ". $ape2;
} while ($reg=mysql_fetch_array($leer)); ?>"><br>
<button type="submit" name="submit" value="Aceptar">Aceptar </button>
</select>
</form>
¿Qué esta mal para que no llame a la funcion prog.php.
Muchas gracias.
Tengo este procedimiento:
<form method="post">
<select id="listasocios" onchange ="prog.php" >
<? do { ?>
<option><? echo $napellidos. "</b><br>";?></option>
<?
$numsoc=$reg['numsoc'];
$nombre=$reg['nombre'];
$ape1= $reg['ape1'];
$ape2= $reg['ape2'];
$napellidos = $numsoc."," .$nombre. ", ". $ape1. ", ". $ape2;
} while ($reg=mysql_fetch_array($leer)); ?>"><br>
<button type="submit" name="submit" value="Aceptar">Aceptar </button>
</select>
</form>
¿Qué esta mal para que no llame a la funcion prog.php.
Muchas gracias.
Valora esta pregunta


0