Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17064

Re: How to know the last arg in a series

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.php
Subject Re: How to know the last arg in a series
Date 2016-09-19 14:10 +0100
Organization A noiseless patient Spider
Message-ID <87poo0hw6f.fsf@bsb.me.uk> (permalink)
References <1b8fa718-fcde-4e92-9ad3-cc69e41f5a0b@googlegroups.com> <nromm0$bg8$1@jstuckle.eternal-september.org>

Show all headers | View raw


Jerry Stuckle <jstucklex@attglobal.net> writes:
<snip>
> However, since these seem to be related, a better way could be something
> like
>
> <input type="text" name="arg[]" ...>
> <input type="text" name="arg[]" ...>
>
> This will create the array $_GET[arg[0]], GET[arg[1]], etc. and you can
> easily use the array functions to get the size and process the
> members.

Something's gone wrong with that syntax.  $_GET['arg'] will be an array,
so you can access $_GET['arg'][0], $_GET['arg'][1] and so on, or, as you
say, use other array operations on the value of $_GET['arg'].

-- 
Ben.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to know the last arg in a series bit-naughty@hotmail.com - 2016-09-18 23:51 -0700
  Re: How to know the last arg in a series "R.Wieser" <address@not.available> - 2016-09-19 10:00 +0200
    Re: How to know the last arg in a series bit-naughty@hotmail.com - 2016-09-21 23:54 -0700
      Re: How to know the last arg in a series "R.Wieser" <address@not.available> - 2016-09-22 09:03 +0200
  Re: How to know the last arg in a series bill <william@TechServSys.com> - 2016-09-19 07:05 -0400
  Re: How to know the last arg in a series Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-19 08:45 -0400
    Re: How to know the last arg in a series Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-19 14:10 +0100
      Re: How to know the last arg in a series Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-19 10:55 -0400
  Re: How to know the last arg in a series "J.O. Aho" <user@example.net> - 2016-09-19 18:53 +0200
  Re: How to know the last arg in a series Arno Welzel <usenet@arnowelzel.de> - 2016-09-19 21:38 +0200
  Re: How to know the last arg in a series bit-naughty@hotmail.com - 2016-09-22 00:02 -0700
    Re: How to know the last arg in a series Luuk <luuk@invalid.lan> - 2016-09-22 17:07 +0200
      Re: How to know the last arg in a series Luuk <luuk@invalid.lan> - 2016-09-22 17:08 +0200

csiph-web