Loading ...
Sorry, an error occurred while loading the content.

8131Re: [phpXperts] php code for multiple number tracking separated by comma

Expand Messages
  • Rakibul Islam
    Feb 7, 2008
    • 0 Attachment
          $data = "1,2,3,4";

          list($one, $two, $three, $four) = explode(",", $data);

          echo 'First Choice = '.$one.'<br>'; // foo
          echo 'Second Choice = '.$two.'<br>'; // foo
          echo 'Third Choice = '.$three.'<br>'; // foo       
          echo 'Last Choice = '.$four.'<br>'; // foo   

      Regards
      -Rakib


      ----- Original Message ----
      From: Zakir Hossain <rajuru@...>
      To: phpexperts@yahoogroups.com
      Sent: Thursday, February 7, 2008 3:19:50 PM
      Subject: Re: [phpXperts] php code for multiple number tracking separated by comma

      when the field is submitted you split the filed by

      $splited=explode(',',$_POST['input_field']);

      so you can get the each seperated value by by

      $splited[0]
      $splited[1]
      $splited[2]

      or now observer the values by
      print_r($splited) ;

      i think u can do the rest of the works.

      thanks

      On 2/7/08, arg_mex_poll <arg_mex_poll@ yahoo.com> wrote:

      Dear all,
      I want php code for multiple number tracking separated by comma. I
      mean that in input field i write max three or five numbers like this
      123456,123457, 123458 and its give me three set of result by looping
      that is as follows:
      Number:123456
      Name: xxxxxx
      Age: 32
      Location: Dhaka

      Number:123457
      Name: yyyyy
      Age: 64
      Location: Bogra

      Number:123458
      Name: zzzzz
      Age: 18
      Location: Chittagong

      Pleae help me. ASAP

      Thanks
      Maksud




      --
      Best Regard,
      Raju
      http://hungrycoder. xenexbd.com
      ------------ --------- -------
      Incredible Bangla Portal
      www.projanmo. com



      Never miss a thing. Make Yahoo your homepage.
    • Show all 4 messages in this topic