Agarre un ejemplo que es este y me da este error:
error: NO MUESTRA NADA!!!
form 1
<html>
<head>
<title></title>
</head>
<body>
<p> Introduzca sus datos personales</p>
<form name="form1.html" method="POST" action="form2.php">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="24%"> Nombre </td>
<td width="76%"><input name="nombre" type="text" id="nombre"></td>
</tr>
<tr>
<td> Apellido </td>
<td><input name="apellido" type="text" id="apellido"></td>
</tr>
<tr>
<td>Correo</td>
<td><input name="correo" type="text" id="correo"></td>
</tr>
<tr>
<td>Estado Civil</td>
<td><select name="estado" id="estado"></td>
<td><option name="soltero" id="soltero"></td>
<td><option name="casado" id="casado"></td>
<td><option name="viudo" id="viudo"></td>
<td><option name="divorciado" id="divorciado"></td>
</select></td>
</tr>
<tr>
<td>Cantidad de Hijos</td>
<td>0<input name="hijos" type="radio" value="0" checked>
1<input name="hijos" type="radio" value="1">
2<input name="hijos" type="radio" value="2">
3<input name="hijos" type="radio" value="3">
</tr>
<tr>
<td><input type="submit" name="submit" value="enviar"></td>
<td> </td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
este este es el form1 del ejemplo esta copiado tal cual lo saque del libro que baje (MAnual imprecindible de Php 5 de Luis Miguel Cabezas Granado)
form 2
Código HTML:
<html> <head> <title></title> </head> <body> <?php foreach ($_POST as $indice => $valor) { echo "$indice: $valor<br>"; } ?> </body> </html>
Gracias
Martin