0
I’m having trouble with the following, I make the connection with the database everything right but in the code I use a parameter Map because I pass username, password, etc., but I need to pass a variable of type Date tbm. All these variables will be sent to a php code. How Could You Solve This??
Follow the code below:
private Map<String, String> params;
public RegisterRequest(String name, String username, String birthDate, String password, Response.Listener<String> listener, String email, int gender)
{
super(Method.POST, REGISTER_REQUEST_URL, listener, null);
params = new HashMap<>();
params.put("userName", name);
params.put("userNick", username);
params.put("userPassword", password);
params.put("userBirthDate", birthDate);
params.put("userEmail", email);
params.put("userGender", gender + "");
}
@Override
public Map<String, String> getParams() {
return params;
}