AJAX - error end of file php

 
Vista:
sin imagen de perfil

error end of file php

Publicado por angelo (1 intervención) el 27/03/2017 19:09:44
estimados, agradeceria su ayuda en esto.

tengo el siguente codigo, en un login con facebook.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if (response.status === 'connected') {
 
	var dato={"nombre":response.name};
	$.ajax({
		type: "post",
		url: "inicio.php",
		data: dato,
		beforeSend: function(objeto){
			$("#loader").html("<img src='loader.gif'>");
		},
		success: function(datos){
 
			$("#loader").html(datos);
 
		}
	});
	// document.location.href='tabs.html';
	 // testAPI();
	} else {
	  // The person is not logged into your app or we are unable to tell.
	  document.getElementById('status').innerHTML = 'Ingresa ' +
	    'A nuestra app.';
	}
}

y la pagina php es:

1
2
3
4
5
6
7
8
9
10
<?php
printf($_POST('nombre'));
 
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
 
?>

me da el siguiente error al llamarla y no se pq es:
statusChangeCallback (14:03:07:776)
at public_html/index.html:7
[object Object] (14:03:07:777)
at public_html/index.html:8
Failed to load resource: Unexpected end of file from server (14:03:07:777 | error, network)
at public_html/inicio.php
>

no se que podria ser.... serian tan ambles de ayudarme.

gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder