Re: [PHP] Question: arrays and form elements

2004-12-30 Thread Brent Baisley
Nope. Is there a problem you are having with using that syntax? If you are having trouble with referencing the fields with javascript, you can't use the "regular" syntax you are used to.: document.formname.fieldname[] That will give you an error because of the brackets. In javascript you'll need

RE: [PHP] Question: arrays and form elements

2004-12-30 Thread Jay Blanchard
[snip] Generally, when I set up a form where, for example, I'll be taking multiple selections from a list I would set the variable / element name as "myvar[]". So I have the brackets [] after the variable name to make it an array. What I want to know is there a way to get around the use of this

[PHP] Question: arrays and form elements

2004-12-30 Thread Stuart Felenstein
Generally, when I set up a form where, for example, I'll be taking multiple selections from a list I would set the variable / element name as "myvar[]". So I have the brackets [] after the variable name to make it an array. What I want to know is there a way to get around the use of this syntax