title: VXML DTMF get input from caller
body: <p>platform : <a href="http://evolution.voxeo.com/" rel="nofollow">sandbox testing place</a></p>
  
  <p>I would like to add one more snippet set</p>
  
  <p>The below snippet will get the mobile number from caller, and post the caller entered number into another page, Code working fine, </p>
  
  <p>but i want to check the that number in the table and pull the " Entered phone number details", that is in contact_tbl holds the phone number, firstname, lastname, address, 
  now i want to pull these details for the given phone number.</p>
  
  <pre><code>&lt;?php
  echo "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;";
  ?&gt;
  &lt;vxml version = "2.1"&gt;
    &lt;meta name="maintainer" content="your_email_address@wherever.com"/&gt;
  
    &lt;property name="inputmodes" value="dtmf" /&gt;
    &lt;form id="get_mobile_no"&gt;
      &lt;field name="mobileno" type="digits?minlength=10;maxlength=10"&gt;
        &lt;prompt&gt;
          &lt;prosody rate="slow"&gt; please enter your 10 digit mobile number !&lt;/prosody&gt;
        &lt;/prompt&gt;
        &lt;!--INVALID--&gt;
        &lt;nomatch count = "1"&gt;
          &lt;prompt&gt;
            &lt;prosody rate="slow"&gt; Is that a number? Please try again. &lt;/prosody&gt;
          &lt;/prompt&gt;
          &lt;reprompt/&gt;
        &lt;/nomatch&gt;
        &lt;!--TIMEOUT--&gt;
        &lt;noinput count = "1"&gt;
          &lt;prompt&gt;Again, please enter your 10 digit mobile number !&lt;/prompt&gt;
          &lt;reprompt/&gt;
        &lt;/noinput&gt;
        &lt;catch event="noinput nomatch" count="3"&gt;
        &lt;prompt&gt;Please try again later. Good bye.&lt;/prompt&gt;
        &lt;exit/&gt; &lt;/catch&gt;
        &lt;filled&gt;
          &lt;prompt&gt;
            &lt;prosody rate="slow"&gt; you said
              &lt;value expr="mobileno"/&gt;
              ! Thanks for calling, you may now hang up.&lt;/prosody&gt;
          &lt;/prompt&gt;
        &lt;/filled&gt;
      &lt;/field&gt;
      &lt;block name="sendData"&gt;
        &lt;prompt&gt;Entering   entering...&lt;/prompt&gt;
        &lt;submit next="get_dtmf_ip.php" namelist="mobileno" method="post" /&gt;
      &lt;/block&gt;
    &lt;/form&gt;
  &lt;/vxml&gt;
  </code></pre>
  
  <p>sample VXML ivr application which get input from user and play caller entered number.</p>
  
  <p>below code working fine, but when i remove grammer tag, it playing some error code, i am not able to track that error code.</p>
  
  <p>now i want to make little change, that user can enter more than one number.</p>
  
  <p>exactly caller have to enter their their mobile number.</p>
  
  <p>how to change the code to accept multiple number.</p>
  
  <pre><code>&lt;?php
  echo "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;";
  ?&gt;
  &lt;vxml version = "2.1"&gt;
        &lt;meta name="maintainer" content="your_email_address@wherever.com"/&gt;
      &lt;form id="guessNumber"&gt;
          &lt;field name="guess"&gt;
            &lt;grammar type="text/gsl"&gt;
              [dtmf-1 dtmf-2 dtmf-3 dtmf-4 dtmf-5 dtmf-6 dtmf-6 dtmf-7 dtmf-8 dtmf-9]
            &lt;/grammar&gt;
            &lt;prompt&gt;
              &lt;prosody rate="slow"&gt;
  Guess what the computer is thinking! Pick a number between 0 and 9.
              &lt;/prosody&gt;
            &lt;/prompt&gt;
            &lt;nomatch&gt;
              &lt;prompt&gt;
                &lt;prosody rate="slow"&gt;
  Is that a number? Please try again.
                &lt;/prosody&gt;
              &lt;/prompt&gt;
              &lt;reprompt/&gt;
            &lt;/nomatch&gt;
            &lt;filled&gt;
              &lt;prompt&gt;
                &lt;prosody rate="slow"&gt;
  you said
                  &lt;value expr="guess"/&gt;
                  !
                &lt;/prosody&gt;
              &lt;/prompt&gt;
            &lt;/filled&gt;
          &lt;/field&gt;
        &lt;/form&gt;
        &lt;/vxml&gt;
  </code></pre>