Ver Mensaje Individual
  #14 (permalink)  
Antiguo 20/01/2010, 16:19
warbandit69
 
Fecha de Ingreso: diciembre-2008
Ubicación: http://www.solucionesrios.tk/
Mensajes: 413
Antigüedad: 16 años, 1 mes
Puntos: 19
Respuesta: Problemas para capturar variables con bucle en php

Todo me indica que el problema esta es en el formulario, mas no en la captura de las variables, con respecto al contador creo. es decir en alguna parte de este codigo:

Código:
<table border="0">
      <tr>
        <th width="38" scope="col">Qty</th>
        <th width="306" scope="col">Spare Part / Material / Equipment</th>
        <th width="149" scope="col">Delivered Note No.</th>
        <th width="77" scope="col">OSE</th>
      </tr>
      <?php 
	  $i = 0;
	  if (!$materialesausar) 
			         print $db->ErrorMsg();
				else
					while (!$materialesausar->EOF) { 
					$i=$i+1;
					?>
      <tr>
        <td><span id="sprytextfield3">
          <label>
            <?php echo "<input type='text' name='cantidad[".$i."]' id='cantidad[".$i."]' class='cantidades' value='".$materialesausar->fields[2]."' readonly='readonly' disabled='disabled'/>"; ?>
          </label>
          <span class="textfieldRequiredMsg">Se necesita un valor.</span></span></td>
        <td><span id="sprytextfield4">
          <label>
            <?php echo "<input type='text' name='material[".$i."]' id='material[".$i."]' class='materiales' value='".$materialesausar->fields[3]."'  readonly='readonly' disabled='disabled'/>"; ?>
          </label>
          <span class="textfieldRequiredMsg">Se necesita un valor.</span></span></td>
        <td><span id="sprytextfield5">
          <label>
            <?php echo "<input type='text' name='notaentrega[".$i."]' id='notaentrega[".$i."]' class='notasentrega' value='".$materialesausar->fields[4]."'  readonly='readonly' disabled='disabled'/>"; ?>
          </label>
          <span class="textfieldRequiredMsg">Se necesita un valor.</span></span></td>
        <td><span id="spryselect7">
          <label>
            <?php echo "<select name='OSE[".$i."]' id='OSE[".$i."]'>
            <option selected='selected'>...</option>
            <option value='yes'>yes</option>
            <option value='no'>no</option>
            </select>"; ?>
            
          </label>
          <span class="selectRequiredMsg">Seleccione un elemento.</span></span><?php echo $i; ?></td>
      </tr>
      <?php 
	  $materialesausar->MoveNext(); 
	  }
	?>
    </table>