Estoy validando datos de un registro a una pagina, los datos validan correctamente pero al intentar insertar los registros a MySQL utilizando PHP y AJAX los datos no se insertan. Este es el html:
Register Account
Register with Google Register with Facebook
Este es el script:
$(‘#btn_registro’).click(function(){
var datos = $(“#form_registro”).serialize();
$.ajax({
method:"POST",
url:"registro.php",
data:datos,
succes:function(e){
if(e==1){
alert("Registro exitoso");
}
else{
alert("Erorr de registro");
}
}
});
return false;
});
Y este es el PHP:
Al pulsar el botón de registrar una vez validado el formulario los datos no se guardan en MySQL.
Alex Muñoz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.