note 16994 added to language.types.array
| From: | volpatoATadaptanetDOTcomDOTbr at php2 dot chek dot com | Date: | Wed, 21 Nov 2001 14:25:15 +0000 |
| Subject: | note 16994 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21105@lists.php.net to get a copy of this message | ||
PHP, HTML and JAVASCRIPT<br>
<br>
Consider the form below:<br>
<form method="post" name="servform">
<br>
Here is a simple example on HTML ID attributes: <br>
<select id="id_logins" name="f_logins[]" multiple><br>
At this point, PHP will take "f_logins"
as an array, with the selected itens as its containts.<br>
To referrer to this object using JS, just do:<br>
document.forms.servform.id_logins[i].value;
<br><br>
NOTE: It works fine for IE >= 5.0. Does not work under NS 4.7 . Other browsers I haven´t tested.
<br>
Hope this helps !
--
http://www.php.net/manual/en/language.types.array.php
http://master.php.net/manage/user-notes.php?action=edit+16994
http://master.php.net/manage/user-notes.php?action=delete+16994
http://master.php.net/manage/user-notes.php?action=reject+16994