note 11215 added to Arrays
| From: | info at knomaze dot com | Date: | Sat, 10 Feb 2001 09:42:50 +0000 |
| Subject: | note 11215 added to Arrays | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10875@lists.php.net to get a copy of this message | ||
PHP, HTML, & Javascript (Follow-up)
Here is part of the final solution we ended up using:
<pre>
function SelectAll() {
var snameidx = 1;
while (document.queryform.elements[snameidx].name != "DBDelete[0]") {
snameidx++;
}
for (var loop_idx = snameidx; loop_idx <= ($NumOfRows + snameidx); loop_idx++) {
document.queryform.elements[loop_idx].checked = true;
}
}
</pre>
http://www.php.net/manual/en/language.types.array.php