trouble with printing data from server
<p>It should echos password of "test" user --> 123 
but
it prints this</p>

<p><a href="http://8pic.ir/images/27z7hmtzxcooumdx0ccz.png" rel="nofollow">http://8pic.ir/images/27z7hmtzxcooumdx0ccz.png</a>
something about eanabling javascript and...</p>

<ul>
<li>AndroidManifest ==>INTERNET premission</li>
</ul>

<p>plz help me</p>

<p>MyCodes :</p>

<p>MainActivity</p>

<pre><code>package com.example.ok;

import android.support.v7.app.ActionBarActivity;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends Activity {

public static String res = "";

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Button btn = (Button) findViewById(R.id.button1);

    new login("http://sharjemoft.skyf.ir/test.php/","").execute();


    btn.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {

            Toast.makeText(getApplicationContext(),res, Toast.LENGTH_LONG).show();

        }
    });
}

}
</code></pre>

<p>Login</p>

<pre><code>package com.example.ok;

import java.io.BufferedReader;

import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.nio.channels.AsynchronousCloseException;

import org.apache.http.entity.InputStreamEntity;

import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;

public class login extends AsyncTask{

private String Link="";
private String User="";
private String Pass="";



public login(String link,String user){

    Link=link;
    User=user;

}



@Override
protected String doInBackground(Object... arg0) {


    try{

        String         data=URLEncoder.encode("username","UTF8")+"="+URLEncoder.encode(User,"UTF8");



        URL mylink=new URL(Link);
        URLConnection connect=mylink.openConnection();

        connect.setDoOutput(true);
        OutputStreamWriter wr=new     OutputStreamWriter(connect.getOutputStream());
        wr.write(data);
        wr.flush();


        BufferedReader reader=new BufferedReader(new     InputStreamReader(connect.getInputStream()));
        StringBuilder sb=new StringBuilder();

        String line=null;

        while((line=reader.readLine()) !=null){

            sb.append(line);

        }

        MainActivity.res=sb.toString();




    }catch(Exception e){



    }



    return "";
}

}
</code></pre>

<p>test.php</p>

<pre><code>&lt;?php
$con=mysql_connect("sql305.skyf.ir","skyf5_18376000","milad137");
mysql_select_db("skyf5_18376000_test",$con);

$user=$_POST['username'];
$pass=$_POST['password'];

$sqlQ="select * from users where Username='$user' ";
$result=mysql_Query($sqlQ);
$row=mysql_fetch_array($result);

if($row[0]){
echo $row[1];
}else{
echo "no"; 
}
mysql_close($con);


?&gt;
</code></pre>