P.D: dejo el código por si a alguno le interesa.
Código
<html> <head> <title>Agenda</title> </head> <body> <?php if($_POST){ $nombre=$_POST['nomTf']; $telefono=$_POST['telTf']; $nom =$_POST["nombres"]; $tel=$_POST["telefonos"]; $salidaNom= $nom.",".$nombre; $salidaTel= $tel.",".$telefono; //Comprobación de que se introdujo un nombre if ($_POST['nomTf']==""){ //No introdujo nombre } //Insercción de datos echo '<table border="10" align="center" > <tr color="#c0c0c0"><td>Nombre</td><td>Telefono</td></tr>'; echo '<tr>'; echo '<td align="center">'. $contactoNomExp[$i].'</td>'; echo '<td align="center">'. $contactoTelExp[$i].'</td>'; echo '</tr>'; } echo '</table>'; } //Sustitución de numero telefono echo '<td align="center">'. $contactoNomExp[$i].'</td>'; echo '<td align="center">'. $contactoTelExp[$i].'</td>'; echo '</tr>'; } echo '</table>'; } //Eliminación de registro echo '</tr>'; } echo '</table>'; } } ?> <h1 align="center">Agenda de Contactos</h1> <form method="post" action="Agenda.php"> Nombre <input type="text" name="nomTf"><br> Telefono <input type="text" name="telTf"><br> <input type="submit" value="Guardar" name="Guardar"> <input type="hidden" name="nombres" value=<?php $salidaNom?>> <input type="hidden" name="telefonos" value=<?php $salidaTel?>> </form> </body> </html>
Mod: Los códigos deben ir en etiquetas GeSHi