0: <?php
1:
2: $p=explode(',',$entrada); //LA CADENA DE ENTRADA SE DESCOMPONE EN UN ARREGLO
3:
4: echo '<form action="index.php">';
5: echo '<table>';
6:
7: $i=0;
8: while ($p[$i]){ // POR CADA ELEMENTO DEL ARREGLO SE IMPRIME UN CUADRO DE TEXTO PARA CAPTURA
9: echo '<tr>';
10: echo '<td align="right">'.$p[$i].': </td>';
11: echo '<td><input type="text" name="'.$p[$i].'" ></td>';
12: echo '</tr>';
13: $i=$i+1;
14: }
15: echo '<input type="hidden" name="funcion" value='.$funcion.'>'; // SE INDICA CUAL FUNCION SE VA A CONSULAR
16: echo '<input type="hidden" name="salida" value='.$salida.'>'; // SE INDICA CUAL ES LA VARIABLE DE SALIDA DE LA FUNCION
17: echo '</form>';
18: echo '</table>';
19: echo '<p align="center"><input type="submit" name="opcion_menu" value="ConsultaFn"></p>'; // SE MANDA A LA OPCION DE CONSULTA
20:
21: ?>