Game Development Community

Using httpobject to post information to php script

by Glen Rosenblatt · in Torque Game Engine · 06/23/2004 (8:15 am) · 2 replies

I am using httpobject to post information to a phpscript which then in turn contacts mysql. but my question is actually much simpler then that. i have this code:

%server    = "localhost:80";
    %path = "/website/";
    %script = "testpage.php?var1=testing1&var2=testing2";
    %hto = new HTTPObject();
    %hto.get(%server, %path @ %script, "");

the problem that i have is during the script execution var1 is equal to the entire string after the ? so var1 == testing1&var2=testing2. Is there a special escape sequence i have to use for the &? or has anyone come across this problem before and know a solution? thanks.

#1
06/23/2004 (8:50 am)
Personally I was never very fond of the httpobject, I use the TCPObject instead.

If you look at this resource www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4085 it tells you how to fix the problem you are having.
#2
06/23/2004 (9:42 am)
Solved and update posted to that resource which was not working as advertised but close enough to working that i fixed it up and posted my results. Thanks very much LabRat.