Re: PHP input and variables dynamic :)

From: Date: Wed, 24 Jul 2002 02:39:26 +0000
Subject: Re: PHP input and variables dynamic :)
Groups: php.general 
Request: Send a blank email to php-general+get-109223@lists.php.net to get a copy of this message
><INPUT TYPE = "HIDDEN" NAME = "status[0]" value = >"collapse"> > >onclick = "document.all['tree'].status[<?=$i?>].value='expand'; No matter what you do, JavaScript will *NEVER* accept the [ or ] character as part of a field's NAME. Those are RESERVED keys in JavaScript. You'll have to refer to the INPUT by NUMBER, rather htan name. onClick = "document.all.tree.5.value='expand'"; Only 5 is probably not correct... You'll have to count your INPUTs. Ooooooh. *OR*, I think you can give the INPUT thingies an *ID* in HTML, and use the *ID* (not NAME) in JavaScript. Never did that, myself, but I hear it works. -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#109223) next »