At 06:10 PM 19/08/2002 +0100, Dave Wilson wrote:
>In order for PHP to parse the results of the SELECT MULTIPLE after it's
>submitted, the variable name needs to end with []. That's great; PHP will
>take each selected element and plant them as consecutive elements in an
>array. But that makes for quite messy code when trying to link the regions
>SELECT action with the sites SELECT MULTIPLE. Javascript can't refer to
>the SELECT MULTIPLE by name because of the brackets, so I have to refer to
>it by its location in the form.
er, i understood you until you reached the above. Maybe its my lack of PHP
but why would a variable name _need_ to end with [] ?
With most languages you parse the submitted form data and should come out
with either variables or an array / hash, which you then work with and name
whatever you like.
Lee Hosty -x- hostyle AT csn.ul.ie -x- +353 (0)86 8768780
--
YONDER BOGINE (n.)
The kind of restaurant advertised as 'just three minutes from this cinema'
which
clearly nobody ever goes to and, even if they had ever contemplated it, have
certainly changed their mind since seeing the advert.
_______________________________________________
Webdev mailing list
Webdev@linux.ie
http://www.linux.ie/mailman/listinfo/webdev

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 80D0C440C8
	for <jm@localhost>; Fri, 19 Jul 2002 11:02:15 -0400 (EDT)
from dogma.slashnull.org [212.17.35.15]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Fri, 19 Jul 2002 16:02:15 +0100 (IST)
from xent.com ([64.161.22.236]) by dogma.slashnull.org
    (8.11.6/8.11.6) with ESMTP id g6JEqgJ06203 for <jm@jmason.org>;
    Fri, 19 Jul 2002 15:52:42 +0100
from lair.xent.com (localhost [127.0.0.1]) by xent.com (Postfix)
    with ESMTP id E5E3E2940EE; Fri, 19 Jul 2002 07:39:30 -0700 (PDT)
from Boron.MeepZor.Com (i.meepzor.com [204.146.167.214]) by
    xent.com (Postfix) with ESMTP id 3BF34294098 for <FoRK@Xent.Com>;
    Fri, 19 Jul 2002 07:39:26 -0700 (PDT)
from Golux.Com (dmz-firewall [206.199.198.4]) by
    Boron.MeepZor.Com (8.11.6/8.11.6) with ESMTP id g6JEmNA24154;
    Fri, 19 Jul 2002 10:48:23 -0400
From fork-admin@xent.com  Fri Jul 19 16:02:16 2002