package com.ast;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.ImageView;

public class daebudo01 extends Activity 
WebView browser;

/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) 
   // TODO Auto-generated method stub
   ImageView back = (ImageView)findViewById(;
   ImageView daebudoI = (ImageView)findViewById(;
   browser = (WebView)findViewById(;
   // Intent 값을 받는다.
   Intent intent = getIntent();
   String a = intent.getStringExtra("daebudo");
   // 전달된 Intent 에 따라 이미지가 다르게 나타난다.
   if (a.equals("daebudo01s"))
   } else if (a.equals("daebudo02s"))
   //Create a new HttpClient and Post Header   
        HttpClient httpclient = new DefaultHttpClient();   
        HttpPost httppost = new HttpPost("");   
            // Add your data   
            List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);   
            nameValuePairs.add(new BasicNameValuePair("a", a));  
           httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs, "UTF-8"));
             UrlEncodedFormEntity entityRequest = 
            new UrlEncodedFormEntity(nameValuePairs, "UTF-8");
            // Execute HTTP Post Request   
           HttpResponse response = httpclient.execute(httppost);   
        catch (ClientProtocolException e) 
            Log.e("FAILED", e.toString());
        catch (IOException e) 
           Log.e("FAILED", e.toString()); 

   back.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v) {
                // TODO Auto-generated method stub
                finish(); // 액티비티를 종료합니다.
안드로이드 소스이고 php 부분이

// DB 연결정보
echo "안드로이드 : ".$_REQUEST['a']."<BR>";
echo "안드로이드2 : ".$_POST['a'];

이부분인데 get, post 둘다 값을 못받습니다. 왜그런건가요?