Page 1 of 1

Error :Password parameter missing!!

Posted: Sat Jul 07, 2012 11:16 am
by shahriyar3
hi
To edit a user account using the link similar to this have
$params = "/api?Password=" .$pw. "&Command=AccountsEdit&Player=" .$player. "&RealName" . $name . "&Location=" . $location;
But the error Is shown
Error: Password parameter missing
How can I fix this error?
thanks

Re: Error :Password parameter missing!!

Posted: Sat Jul 07, 2012 11:54 am
by Kent Briggs
Remove the /api? part from the $params variable. It is part of the url and the leading question mark is not used in a parameter list in the PHP curl function. See other examples here:

http://www.briggsoft.com/docs/pmavens/API_Examples.htm

Re: Error :Password parameter missing!!

Posted: Sat Jul 07, 2012 12:36 pm
by shahriyar3
thank you previous problem is ok.
but i can not change the realname fields?!!
location field is ok but realname have problem

Re: Error :Password parameter missing!!

Posted: Sat Jul 07, 2012 12:45 pm
by Kent Briggs
shahriyar3 wrote: but i can not change the realname fields?!!
location field is ok but realname have problem
You are missing an equals sign in the example you posted above.
Change &RealName to &RealName=