<?php
$cn=mysql_connect ("localhost","root","");
mysql_select_db('banco',$cn);
if ( isset( $_POST['txtdni'], $_POST['txtnom'], $_POST['txtape'] ) ) {
$dni = $_POST['txtdni'];
$nom = $_POST['txtnom'];
$ape = $_POST['txtape'];
mysql_query("INSERT INTO cliente (dni,nombre,apellido) VALUES ($dni, $nom, $ape)",$cn);
mysql_close($cn);
echo "!!!";
}
else{
$dni = "";
$nom = "";
$ape = "";
}
?>