I am trying to pass a variable from android to php, while receiving value in php does not get values after whitespace. I am passing variable like,

```
private void register(String txtname) {
String urlSuffix = "?name="+txtname;
 Log.d("unmae",txtname);
    class RegisterUser extends AsyncTask<String, Void, String>{
        ProgressDialog loading;

        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            loading = ProgressDialog.show(UserRegister.this,"Please Wait","Loading...");
        }

        @Override
        protected void onPostExecute(String s) {
            super.onPostExecute(s);
           loading.dismiss();
                      }

        @Override
        protected String doInBackground(String... params) {
            String s = params[0];
            BufferedReader bufferReader = null;
            try {
                URL url = new URL(REGISTER_URL+s);
                HttpURLConnection con= (HttpURLConnection) url.openConnection();
                bufferReader=new BufferedReader(new InputStreamReader(con.getInputStream()));
                String result;
                result = bufferReader.readLine();
                return result;

            } catch (Exception e) {

                return null;
            }
        }
    }

        RegisterUser ru = new RegisterUser();
        ru.execute(urlSuffix);
}

```

**On Php side**

```
$uname = $_GET['name'];

```

While log the variable, the output is like this
Eg: `unmae:first second`

whie the echo in php side it appears like this

Eg: `$uname = $_GET['name'];`
`echo $uname;`
`output:first`