This script is to change your password. In order to change, you must have the original password and confirm the password before it will change it. I want to display the status of the message that comes back from my www.text. If it reads this then display that. If it displays that, then show this.
I had it check to see if the passwords are both the same and the results shows up without a problem. Only when I try to display what comes back from the server, it doesn’t display anything. What am I doing wrong?
I did the exact same thing in another script and it worked just fine. I could use an extra pair or eyes.
Status.text is the Text object.
string statustext = www.text;
if (statustext == "You are an Admin, please change your password through the Web Application!")
{
Status.text ="You are an Admin, please change your password through the Web Application!";
ClearInfo ();
}
else if (statustext == "Password is Changed to $npassword!")
{
Status.text = "Password is now changed to: "+ PasswordInputNew.text + "!";
yield return new WaitForSeconds (5);
ClearInfo ();
Status.text="";
}
else if (statustext == "")
{
Status.text ="There is no user by that username!";
yield return new WaitForSeconds (5);
ClearInfo ();
Status.text="";
}
Thanks!
D’OH! The echo statement in the php script wasn’t the same, no wonder it didn’t show up!
Thanks k234234!