echo "<script type=\"text/javascript\">alert(\"Se ha insertado el formulario\"); window.location = \"http://localhost/formulario.php\"; </script>";