can we interface a 4x3 keypad for dialing a number for sending sms

hi i am working on a project in wich i am using a gsm module for sending some data as a sms on a specific number and its working
but now i want to interface a 4x3 numeric keyad for entering the user specified number on wich the sms will be sended by the gsm so how can i do that plzzz if any i can help me i want the codes

#include <GSM.h>

#define PINNUMBER ""

// initialize the library instance
GSM gsmAccess;
GSM_SMS sms;

void setup()
{
  // initialize serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  Serial.println("SMS Messages Sender");

  // connection state
  boolean notConnected = true;

  // Start GSM shield
  // If your SIM has PIN, pass it as a parameter of begin() in quotes
  while (notConnected)
  {
    if (gsmAccess.begin(PINNUMBER) == GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }

  Serial.println("GSM initialized");
}

void loop()
{

  Serial.print("Enter a mobile number: ");
  char remoteNum[20] = "9743667573";  // telephone number to send sms
  readSerial(remoteNum);
  Serial.println(remoteNum);

  // sms text
  Serial.print("Now, enter SMS content: ");
  char txtMsg[200];
  readSerial(txtMsg);
  Serial.println("SENDING");
  Serial.println();
  Serial.println("Message:");
  Serial.println(txtMsg);

  // send the message
  sms.beginSMS(remoteNum);
  sms.print(txtMsg);
  sms.endSMS();
  Serial.println("\nCOMPLETE!\n");
}

/*
  Read input serial
 */
int readSerial(char result[])
{
  int i = 0;
  while (1)
  {
    while (Serial.available() > 0)
    {
      char inChar = Serial.read();
      if (inChar == '\n')
      {
        result[i] = '\0';
        Serial.flush();
        return 0;
      }
      if (inChar != '\r')
      {
        result[i] = inChar;
        i++;
      }
    }
  }
}

can we interface a 4x3 keypad for dialing a number for sending sms

Yes, we can.

if any i can help me i want the codes

What part are you going to do?

Connecting a 4 x 3 keypad is easy. Detecting when a key is pressed is easy. Using the stored data to define where to send the text message is easy.

Storing the key information, dealing with "oops, that was the wrong key", showing the stored data (so the user can see which keys he/she did press), etc. are the hard(er) parts. Not difficult, if you apply some thought and have considered all cases, but not "do it for me for nothing" easy.

how can i do that plzzz if any can help me i want the codes

Another "Please do my school project for me so I can spend more time partying " post ?

navinsingh:
hi i am working on a project in wich i am using a gsm module for sending some data as a sms on a specific number and its working
but now i want to interface a 4x3 numeric keyad for entering the user specified number on wich the sms will be sended by the gsm so how can i do that plzzz if any i can help me i want the codes

use 7 digital pins,
4 as rows,
3 as columns,
put 3 10k pullups on the columns,
put all pins into input mode

in a loop:
change each of the the 4 row pins to output LOW, ONE AT a TIME.
read the values of the 3 column pins.
record which pin is low, the intersection of the row and column is the switch.
change current row pin back to input
loop to next row pin.

all done, do I get an 'A'

chuck.