Hello people, I have a problem while doing a post to a url. here is my scenario :
I have a login page e.g http://localhost/login.php and i need to login with the username and password from my android application. I am using org.apache to do a post. I am being able to post the variables to the local to the php page, but how to get the response from my php code below : php code : function loginpass(e) { $sql = "SELECT count(*) FROM table_name where username='abd' AND password='pass' "; $querycount = mysql_query($sql) or die (mysql_error()); while ($row = mysql_fetch_array($querycount)) { $count = $row[0]; } if ($count == 1) { $response = "ok"; } else { $response = "ko"; } echo $response; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// I know i can use java.net , do a post and read the contents from the page using buffereader , is there anyway? may be assign the response to a session variable... and read the session variable ? Many thanks for your consideration and help regards Vir :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

