Re: QuickForm: Problem enabeling and disabeling Date fields with Javascript

From: Date: Thu, 10 Feb 2005 06:13:14 +0000
Subject: Re: QuickForm: Problem enabeling and disabeling Date fields with Javascript
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17467@lists.php.net to get a copy of this message
> Hello! > > I think javascript allows only A-Za-z0-9_ in document elements' names just > like in variables. > Frustratingly, PHP requires invalid form field names if you want the info to end up in an array. This JavaScript syntax seems to work ok, though: var field = document.forms['form_name']['field_name'] Best, Nick. ------------------------------- Nick Nettleton web: www.plumdigitalmedia.com

« previous php.pear.general (#17467) next »