Issues with login script.
by Chris "DiGi" Timberlake · in Torque Game Engine · 08/15/2005 (3:57 pm) · 1 replies
Ok, i'm having issues with a login script, loosely based upon, http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4085
I used it as an example, however it seems my username/password are being sent as a username, one object $Username, and not splitting it to $Username/$Password. Heres a bit of my code, any suggestions or help will help me much, Thanks
Edit: Upon further reading, could this be a hex issue?
I used it as an example, however it seems my username/password are being sent as a username, one object $Username, and not splitting it to $Username/$Password. Heres a bit of my code, any suggestions or help will help me much, Thanks
%host = "darknessstudios*********:80";
%script = "/tge/game/auth.php";
%query = "Username="@$Pref::User::Username@"\t"@
"&password="@$Pref::User::Password@"\r";
echo(%query);
%upd = new HTTPObject(UserLogin);
%upd.clientid = %client;
%upd.get(%host, %script, %query);Edit: Upon further reading, could this be a hex issue?
About the author
Torque Owner Gregory "Centove" McLean
%script = "/tge/game/auth.php"; %query = "?Username="@$Pref::User::Username@"\t"@ "&password="@$Pref::User::Password@"\r";