<html>
<body>
<?php
$link = mysql_connect("localhost","agapita","cantv123");
mysql_select_db("sacrip",$link);
$sql = "INSERT INTO agenda (cedula, nombre, apellido, fech_ult_pag, mont_cancel, deuda_pend) ".
"VALUES (".$_POST['cedula'].", ".$_POST['nombre'].", ".$_POST['apellido'].",".$_POST['fech_ult_pag'].",".$_POST['mont_cancel']."', ".$_POST['deuda_pend'].")" or die(mysql_error());
$result = mysql_query($sql);
echo "¡Gracias! Hemos recibido sus datos.\n";
?>
<div align="center"><a href="sacrip.html">Visualizar el contenido de la base</a></div>
</BODY>
</HTML> |