De antemano una disculpa...
Espero te sirvan
CODE CamposxPeticion.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<blockquote> </blockquote>
<table width="317" border="0">
<tr bgcolor="#DFFFCC">
<th colspan="2" scope="col">FORMULARIO</th>
</tr>
<tr>
<th colspan="2" scope="row"> </th>
</tr>
<tr bgcolor="#DEFE94">
<th width="109" scope="row"># CAMPOS </th>
<td><form name="form1" method="post" action="CamposxPeticion.php">
<input name="numero" type="text" id="numero" size="3" maxlength="3">
<input type="submit" name="Submit" value="Enviar">
</form></td>
</tr>
<tr>
<th colspan="2" scope="row"> </th>
</tr>
<?PHP
if ($numero != 0)
{
echo" <form action=GetVars.php method=get name=enviar>";
for ($i=0;$i<$numero;$i++){
echo "
<tr bgcolor=#E1FFFE>
<th scope=row>Campo ".$i."</th>
<td><input name=campo".$i." "."type=text></td>
</tr>";
}
echo "<input name=ncampos value=".$numero." type=hidden>";
}
?>
<tr bgcolor="#E1FFFE">
<th bgcolor="#E1FFFE" scope="row"><div align="right">Cliente:</div></th>
<th scope="row"><div align="left">
<input name="cliente" type="text" id="cliente">
</div></th>
</tr>
<tr bgcolor="#E1FFFE">
<th scope="row"><div align="right">Numero Tel: </div></th>
<th scope="row"><div align="left">
<input name="tel" type="text" id="tel">
</div>
</th>
</tr>
<tr bgcolor="#E1FFFE">
<th colspan="2" scope="row"><input type="submit" name="Submit2" value="Ingresar Datos"></form></th>
</tr>
</table>
<p> </p>
</body>
</html>
-----------------------------
-----------------------------
CODE arreglos.php
<?php
$grupo=array();
session_register("grupo");
session_register("indice");
if ($OK == "INSERTAR") {
$indice=$indice+0;
$grupo[$indice]=$valor;
echo "elemento ".$indice." insertado";
$indice++;
};
if ($OK == "DESPLEGAR") {
for($r=0; $r<=COUNT($grupo)-1 ; $r=$r+1)
{ echo $grupo[$r]."<br> " ; };
// otra manera de desplegar
print_r($edad);
session_unregister($grupo);
};
echo "<FORM ACTION=arreglos.php METHOD=post>";
echo "EDAD:<INPUT TYPE=text NAME=valor><BR>";
echo "<INPUT TYPE=submit NAME=OK VALUE=INSERTAR ><BR>";
echo "<INPUT TYPE=submit NAME=OK VALUE=DESPLEGAR ><BR>";
echo "</FORM>";
?>
-----------------------------
-----------------------------