Android Question getting data from php module

ronell

Well-Known Member
Licensed User
Longtime User
B4X:
<?PHP
    include_once("sample.php");
    if( isset($_POST['txtUsername']) && isset($_POST['txtPassword']) ) {
        $username = $_POST['txtUsername'];
        $password = $_POST['txtPassword'];
      
        $query = "SELECT user_name, user_password FROM Accounts ".
        " WHERE user_name = '$username' AND user_password = '$password'";

}
?>

i have this php module deployed in my hosting , how can i get the data in txtUsername and txtpassword from this php , plss someone give me example code on how to do this

ronell
 
Top