Why isnt this value getting updated on the Server side?
"aric.holland" <[email protected]> Sun, 07 Sep 2008 08:42:51 -0000
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Im using an java applet to communicate with an php server using xml-
rpc. I created a login, but my variable $FAIL_ATTEMPTS is not adding
and im getting worried that im way off.
can anyone take a look?
function Login($xmlrpcmsg)
{
$USERNAME = $xmlrpcmsg->getParam(0)->scalarVal();
$PASSWORD = $xmlrpcmsg->getParam(1)->scalarVal();
$FAILED_ATTEMPTS;
$result = "Returned Data:" . "Username: " . $USERNAME . "
Password: " . $PASSWORD;
if($USERNAME == "Admin")
{
if($PASSWORD == "rooot")
{
return new xmlrpcresp(new xmlrpcval("Welcome
administrator!","string"));
}
$FAILED_ATTEMPTS = $FAILED_ATTEMPTS + 1;
return new xmlrpcresp(new xmlrpcval("Invalid
Authorization! $FAILED_ATTEMPTS"));
}
return new xmlrpcresp(new xmlrpcval($result, "string"));
}
The client picks up the value of 1 if you enter in an invalid
attempt, but if you do it more than once it doesnt show???
Thank you very much,
Aric
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/