thedangler Posted April 4, 2013 Share Posted April 4, 2013 I'm trying the localAPI and I get the weirdest error message when I try to add a client. Mind you listing clients works fine. $command = "addclient"; $adminuser = "Programmer"; $postfields["firstname"] = "Test"; $postfields["lastname"] = "User"; $postfields["companyname"] = "WHMCS"; $postfields["email"] = "demo@whmcs.com"; $postfields["address1"] = "123 Demo Street"; $postfields["city"] = "Demo"; $postfields["state"] = "Florida"; $postfields["postcode"] = "AB123"; $postfields["country"] = "US"; $postfields["phonenumber"] = "123456789"; $postfields["password2"] = "demo"; $postfields["currency"] = "1"; $results = localAPI($command,$postfields,$adminuser); print_r($results); Array ( [result] => error [message] => You did not enter your first name ) Why is this not working. firstname is obviously set. Anyone? using 5.2 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.