Re: note 29659 rejected and deleted from language.variables.predefined by notes editor victor
| From: | Steve Myers | Date: | Thu, 20 Feb 2003 20:59:22 +0000 |
| Subject: | Re: note 29659 rejected and deleted from language.variables.predefined by notes editor victor | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15827@lists.php.net to get a copy of this message | ||
Sorry, maybe I shouldn't have ended my note with "any suggestions?"
However, what I posted would have been useful to others. Without the
cries for help of course. Man, I always do something stupid like that.
It's a shame I couldn't just state the problem and then shut up. Would
that have stayed posted? Anyway, I think php.net is a great site. Keep
up the good work.
J-Smoove
>>> <webmaster@php.net> 02/20/03 03:03PM >>>
If you are receiving this email is because your note posted
to the on-line PHP manual has been removed by one of the editors.
Read the following paragraphs carefully, because they contain
pointers to resources better suited for requesting support or
reporting bugs, none of which are to be included in manual notes
because there are mechanisms and groups in place to deal with
those issues.
The user contributed notes are not an appropriate place to
ask questions, report bugs or suggest new features; please
use the resources listed in <http://www.php.net/support.php>
for those purposes. This was clearly stated in the page
you used to submit your note, please carefully re-read
those instructions before submitting future contributions.
Bug Submissions and Feature Requests should be entered at
<http://bugs.php.net/>. For documentation errors use the
bug system, and classify the bug as "Documentation problem".
Support and ways to find answers to your guestions can be found
at <http://www.php.net/support.php>.
Your note has been removed from the on-line manual.
----- Copy of your note below -----
This is in addition to pschulten at NOSPMweb dot de and slandau at
miticom dot com.
If you need to access $_POST variables where the form element names
were duplicated such as
<input type='text' name='my_field'>
<input type='text' name='my_field'>
<input type='text' name='my_field'>
you do need to rename to
<input type='text' name='my_field[]'>
<input type='text' name='my_field[]'>
<input type='text' name='my_field[]'>
when you do that, you can access them like this
$_POST[my_field][0]
$_POST[my_field][1]
$_POST[my_field][2]
however, and if you know a way around this please help,
you can no longer process these form elements as an array using
JavaScript
For example:
for(var i = 0; i < 3; i++)
{
document.form_name.my_field[i].value = 'whatever';
}
you will get an error saying
document.form_name.my_field has no properties
or at least I got that error
Any suggestions?