0
@Override
protected String doInBackground(String... params) {

     HashMap<String, String> data = new HashMap<String,String>();
     data.put("name",params[0]);
     data.put("username",params[1]);
     data.put("password",params[2]);
     data.put("email",params[3]);

     String result = ruc.sendPostRequest(REGISTER_URL,data);

     return  result;
}

Here is PHP codes:

if($_SERVER['REQUEST_METHOD']=='POST'){
    $name = $_POST['name'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $email = $_POST['email'];
}

How can php parse the HashMap?I am newbee,thanks for answers!

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.