0
I wanted someone to explain me how to do this.. I have the following code in PHP and wanted to bring to Android, returning the name of the person. It could be in an Array... The problem is that I can’t get this data.
$f = fopen('POST_DATA.txt', 'a');
fwrite($f, 'ID: '.$id."\r\n");
$id = uniqid( time() );
fwrite($f, 'Nome: '.$_POST['nome']."\r\n");
fwrite($f, 'Cpf: '.$_POST['cpf']."\r\n");
fwrite($f, 'Bairro: '.$_POST['bairro']."\r\n");
fwrite($f, 'E-mail: '.$_POST['email']."\r\n");
fwrite($f, 'Telefone: '.$_POST['telefone']."\r\n\r\n");
fclose($f);
echo 'Dados enviados com sucesso';
I don’t understand your question. I could rephrase?
– Victor Stafusa
I think your other question is better. Delete this if the doubt is the same as http://answall.com/questions/69364/comor-dataos-com-json
– Luídne
Yes, but that question does not answer what I want to know. I would like to take this data and show them on android. I have an application that needs to know which user is logged in. I would need to take the name with JSON and check whether the user is logged in or not. I just can’t get this PHP data
– felipe