From webdev-admin@linux.ie Tue Aug 20 11:52:31 2002
Return-Path: <webdev-admin@linux.ie>
Delivered-To: yyyy@localhost.netnoteinc.com
Received: from localhost (localhost [127.0.0.1])
by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 9465B43C4A
for <jm@localhost>; Tue, 20 Aug 2002 06:51:45 -0400 (EDT)
Received: from phobos [127.0.0.1]
by localhost with IMAP (fetchmail-5.9.0)
for jm@localhost (single-drop); Tue, 20 Aug 2002 11:51:45 +0100 (IST)
Received: from lugh.tuatha.org (root@lugh.tuatha.org [194.125.145.45]) by
dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g7K95qZ31692 for
<jm-webdev@jmason.org>; Tue, 20 Aug 2002 10:05:52 +0100
Received: from lugh (root@localhost [127.0.0.1]) by lugh.tuatha.org
(8.9.3/8.9.3) with ESMTP id KAA23633; Tue, 20 Aug 2002 10:05:41 +0100
Received: from mail.tradesignals.com ([217.75.2.27]) by lugh.tuatha.org
(8.9.3/8.9.3) with ESMTP id KAA23595 for <webdev@linux.ie>; Tue,
20 Aug 2002 10:05:35 +0100
X-Authentication-Warning: lugh.tuatha.org: Host [217.75.2.27] claimed to
be mail.tradesignals.com
Received: from docaoimh.tradesignals.com (docaoimh.tradesignals.com
[192.168.1.26]) by mail.tradesignals.com (8.11.6/8.11.6) with ESMTP id
g7K95Vm15086; Tue, 20 Aug 2002 10:05:31 +0100
Received: from localhost (localhost [[UNIX: localhost]]) by
docaoimh.tradesignals.com (8.11.6/8.11.6) id g7K92qf04171; Tue,
20 Aug 2002 10:02:52 +0100
Content-Type: text/plain; charset="iso-8859-1"
From: Donncha O Caoimh <donncha.ocaoimh@tradesignals.com>
To: Dave Wilson <dave.wilson@heanet.ie>, webdev@linux.ie
Subject: Re: [Webdev] PHP+Javascript request
Date: Tue, 20 Aug 2002 10:02:52 +0100
X-Mailer: KMail [version 1.4]
References: <5.1.0.14.0.20020819181835.00ac0eb8@holly.csn.ul.ie>
<3D612ACA.4050100@heanet.ie>
In-Reply-To: <3D612ACA.4050100@heanet.ie>
MIME-Version: 1.0
Message-Id: <200208201002.52675.donncha.ocaoimh@tradesignals.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by lugh.tuatha.org id
KAA23595
Sender: webdev-admin@linux.ie
Errors-To: webdev-admin@linux.ie
X-Mailman-Version: 1.1
Precedence: bulk
List-Id: <webdev.linux.ie>
X-Beenthere: webdev@linux.ie
Kate asked about this several months ago, and I posted some code and hints on
how to work around this problem. AFAIR, you simply refer to the form elements
by their names, including brackets, but put " or ' around them, ie:
val = "document.form.city[1]";
I think that works, there's an answer to this question on http://faqts.com/
where I got the original answer.
Donncha.
On Monday 19 August 2002 18:28, Dave Wilson wrote:
> > 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.
>
> IIRC, if the query string contains
>
_______________________________________________
Webdev mailing list
Webdev@linux.ie
http://www.linux.ie/mailman/listinfo/webdev