Apps Need Help with Login App Using XML/HttpURL/PHP/SQL

ac4android

Well-Known Member
I am trying to create a login app using email and a password using HttpURL.
I am getting an email/password error back from the PHP I've created on the remote server.

Here is the XML that gets the email/password variables, the work well:
Code:
           <EditText
                android:id="@+id/et_email"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/prompt_email"
                android:inputType="textEmailAddress"
                android:maxLines="1"
                android:singleLine="true" />

            <EditText
                android:id="@+id/et_password"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/email"
                android:layout_marginTop= "25dp"
                android:hint="@string/prompt_password"
                android:inputType="textPassword"
                android:maxLines="1"
                android:singleLine="true" />

Here is the part of the Android Java that grabs the email/login and send the pair to PHP, the logindata seems to have some spurious characeters in it, there also seems to be an extra space before the "com"...
View attachment 121550
 
Last edited:
D

Deleted User

Guest
Can't answer this question without seeing the code which initialises variable 'logindata'.
 

ac4android

Well-Known Member
Thread starter
The loginData is in the attachment, it is a .jpg because I wanted to include the debug output.
Please click on the attachment
That's where I think the error crept in but I do not know for sure and I will keep testing tomorrow.
 
Last edited:
D

Deleted User

Guest
Ok, but as I say, we need to see the Java code which assigns the value to this variable, in order to explain how the variable got this erroneous value in the first place. Simply looking at its value isn't enough for someone to diagnose the problem.
 

ac4android

Well-Known Member
Thread starter
I added a few lines of codes to allow URI chars, that didn't work either. I am sending a .jpg with the debug data.
 

Attachments

  • JunkInLogin222.JPG
    JunkInLogin222.JPG
    131.1 KB · Views: 69
Last edited:
Top