Pages: [1]
  Print  
Author Topic: problem about the loadVariables example  (Read 2797 times)
0 Members and 1 Guest are viewing this topic.
nanifrankey
Newbie
*
Posts: 25


« on: 18 May , 2009, 06:50:36 »

loadVariables("http://127.0.0.1:1001/Basic/uldl?klCommand=loadVariables&
klUrl=http://www.example.com/page/get.php?variable%201=value&klUrlDecodeOff=1",
"" );

in this examples, there is a string variable%201= value will be sent to server, I would like to send a Login Username to the server, how can I modify the code here?
change it to variable%201 = LoginName?
I am not quite understand here, it means a all variables in the page are included and will be sent to the server? or only one variable which is written here?
If it is only one variable, then I do not know what else error I have here.

In my server side, it shows following;
                            $Uname = $_POST['LoginName'];
or it has to be written like:
               if ($Uname = $_POST['LoginName']){$Uname = $_POST['LoginName'];}

is that ok?

I am very appreciating admin's help Cheesy
Logged
KL Admin
Sr. Member
****
Posts: 313


« Reply #1 on: 06 June , 2009, 01:47:37 »

variable%201=value
should be just variable=value

Example :
klUrl=http://www.example.com/page/get.php?LoginName=testuser

and PHP code :
$Uname = $_POST['LoginName'];

hope that helped
Logged
Pages: [1]
  Print  
 
Jump to: