Results 1 to 4 of 4

Thread: length of form passed array [RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    74

    length of form passed array [RESOLVED]

    hello,
    I have a form with input type like this:
    <input type=hidden name="RecId[]" value="foo">

    this input is dynamicly created and there is a vary number of it.

    now the question is how can I know the length of the array in the procesing page (the page that I goto when I submit the form)

    because I want to print the length on the screen.

    thanks
    Yair
    Last edited by yair24; Aug 18th, 2003 at 09:45 AM.
    -------------------------------------
    http://www.ybweb.com

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Is this what you want?

    Code:
    echo count($RecId[]);
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Posts
    74

    Re: length of form passed array

    Originally posted by yair24
    hello,
    I have a form with input type like this:
    <input type=hidden name="RecId[]" value="foo">

    this input is dynamicly created and there is a vary number of it.

    now the question is how can I know the length of the array in the procesing page (the page that I goto when I submit the form)

    because I want to print the length on the screen.

    thanks
    Yair
    thanks!!
    this is what I need its just that it should be without the []
    thanks again.

    Yair
    -------------------------------------
    http://www.ybweb.com

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: Re: length of form passed array

    Originally posted by yair24
    thanks!!
    this is what I need its just that it should be without the []
    thanks again.

    Yair
    Whoops! You're right, there should be no [] in there.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width