Ver Mensaje Individual
  #11 (permalink)  
Antiguo 08/11/2008, 12:48
dayne_perez
 
Fecha de Ingreso: noviembre-2008
Mensajes: 101
Antigüedad: 15 años, 5 meses
Puntos: 0
Exclamación Respuesta: Como puedo obtenet el valor de un edit

En realidad no se en donde poner bien la variable $_POST, así que hice un código de prueba que es así:

<?
$fp = file("Z:\\Version Nueva\\tablas.def");
?>
<select name="options" size="1">

<?

foreach($fp as $value) // Loop through each element
{
$key=stripos($value,"PKey");
$mothertable= stripos($value,"MotherTable");
if (!$key)
{
if (!$mothertable)
{
$i=stripos($value,":");
$dato=substr($value,0,$i);
if ($c==0)
{
print("<option></option>");
print("<option>$dato</option>");
$c=$c+1;
}
else
print("<option>$dato</option>");
$c=$c+1;

}
}
}
echo $_POST['options'];
?>


</select>








Hice otra prueba mas, que sería así mas o menos

<html>
<head/>
<body>
<?
include("Llenar.php");
?>
<table width="929" border="0" align="center">

<tr>

<td width="304"><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>


</tr>
<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><select name="options" size="1">
<?
Llenar_campos();
?>
</select>
</td>
</tr>

<tr>
<td><form name="form1" method="post" action="">
<input type="submit" name="Interrogar" value="Interrogar">
<?
echo $_POST['options'];
?>
</form></td>
</tr>

</tr>
</table>
</body>
</html>



Que es lo que no estoy haciendo bien??
Saludos y gracias