registroalu.html
Código PHP:
<html>
<FORM action="registroalu.php" method="POST">
<BODY bgcolor="coral" Background="imagenes/imagen.jpeg">
<center>
</center>
<TR>
<TD colspan="2"> </TD>
</TR>
<TABLE width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD colspan="2" align="center" bgcolor="blue"><font color="blue"><strong><font SIZE="+2">
</marquee>
</font></strong></font></TD>
</TR>
<tr bgcolor="orange">
<TR>
<TD colspan="2" align="center" bgcolor="green"><font color="blue"><strong><font size="+2">
<marquee behavior="alternate">
REGISTRO DE ALUMNOS Y NOTAS
</marquee>
</font></strong></font></TD>
</TR>
</TABLE>
<TABLE width="80%" border="1" align="center" cellpadding="2" cellspacing="0" bgcolor="blue" >
<TR>
<TD bgcolor="blue" align="center" width="5%"><font color="Red"><strong>N</strong></font></TD>
<TD bgcolor="blue" align="center" width="15%"><font color="Red"><strong>Nombres Y Apellidos</strong></font></TD>
<TD bgcolor="blue" align="center" width="10%"><font color="Red"><strong><em>Nota</em></strong></font></TD>
</TR>
<TR>
<TD bgcolor="" align="center" width="5%" ><font color="#FFFF00">
<input type="text" size="3" name="x1" value="01" >
</font>
<TD bgcolor="" align="center" width="10%"><font color="#FFFF00">
<input type="text" size="30" name="a1" value="" >
<TD bgcolor="" align="center" width="7%">
<font color="#FFFF00">
<select name="a1" >
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>INH</option>
</select>
</font></TR>
<TR >
<TD bgcolor="" align="center" width="5%" ><font color="#FFFF00">
<input type="text" size="3" name="x2" value="02" >
</font>
<TD bgcolor="" align="center" width="15%" ><font color="#FFFF00">
<input type="text" size="30" name="a2" value="">
<TD bgcolor="" align="center" width="7%">
<font color="#FFFF00">
<select name="a2" >
<option>0</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>INH</option>
</select>
</font></TR>
<TR >
<TD bgcolor="" align="center" width="5%" ><font color="#FFFF00">
<input type="text" size="3" name="x3" value="03" >
</font>
<TD bgcolor="" align="center" width="15%" ><font color="#FFFF00">
<input type="text" size="30" name="a3" value="">
</font>
<TD bgcolor="" align="center" width="7%">
<font color="#FFFF00">
<select name="a3" >
<option>0</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>INH</option>
</select>
</font></TR>
<TR >
<TD bgcolor="" align="center" width="5%" ><font color="#FFFF00">
<input type="text" size="3" name="x4" value="04" >
</font>
<TD bgcolor="" align="center" width="15%" ><font color="#FFFF00">
<input type="text" size="30" name="a4" value="">
</font>
<TD bgcolor="" align="center" width="7%">
<font color="#FFFF00">
<select name="a4" >
<option>0</option>
<option>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>INH</option>
</select>
</font></TR>
</select>
</font></TR>
<HR width="100%">
<tr bgcolor="Black" >
<td colspan=4><center><font size="2" face="Arial, sans-serif" color="White">AUTOR: <br>
</table>
<font color="#FFFF00"><br>
<br>
</font>
<table width="30%" cellspacing="0" border="0" cellpadding="2" align="center" >
<tr>
<TD colspan="2" align="center" bgcolor="Blue"><font color="#FFFF00">
<input type="submit" name="calcular" value="Guardar">
<INPUT type="reset" name="Limpiar" value="Limpiar">
</font></TD>
</tr>
</table>
<font color="#FFFF00">
</FORM>
</font>
</body>
</html>
registroalu.php
Código PHP:
<?php
$datos = array('1','2','3');
foreach($_POST as $datos) {
echo "$datos<br >";
}
?>
Solo me muestra un dato de todos los que ingreso y de manera desordenada =S espero su ayuda a esto soy nuevo e php y html y agradeceria mucho que me ayuden.
PD = es sin base de datos algo interno . Utilizando xampp.
Ante mano Gracias.