RE: [PHP-DB] PHP / Javascript question
| From: | Ford, Mike | Date: | Tue, 16 Nov 2004 12:15:47 +0000 |
| Subject: | RE: [PHP-DB] PHP / Javascript question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37289@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
On 16 November 2004 03:03, Chris Payne wrote:
This is OT, really, but because it's an easy answer:
> if ( document.removeitems.del.value == "" )
> BUT because the tickboxes information is stored in a PHP
> Array called del[]
> I am having major problems getting it to work.
You shouldn't be, since any good JavaScript text will tell you that, by
definition, x.y is identical to x['y']; so:
document.removeitems['del[]']
will get you started.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211