note 1974 deleted from language.variables.external by irc-html

From: Date: Sat, 19 Jan 2002 19:02:50 +0000
Subject: note 1974 deleted from language.variables.external by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25221@lists.php.net to get a copy of this message
hope this is right... If you want to access the value of a INPUT element that has an array name using JavaScript/DOM, think of the the variable as a string, not an array: e.g. to access this name/value pair in the form named "shop": <input type="hidden" name="cart[88]" value="1"> use: document.shop['cart[88]'] instead of something like: document.shop.cart[88] But in the php code you still have the array $cart with elements such as: $cart[88]

« previous php.notes (#25221) next »