$_POST and multiselectable <select> tag
am 31.08.2007 17:59:46 von ZannaHi,
If I put in the code the tag
Hi,
If I put in the code the tag
On Aug 31, 11:59 am, "Fabio"
> Hi,
>
> If I put in the code the tag
ELINTPimp wrote:
>
> Do a search on this group for select+array
Ok, I thank you to let me lost time searching for this *complex* solution
(ah, select+multiple, not select+array) that is
name="list[]"
and not
name="list"
Good, this works... also if the "[]" is not valid in html4 name attribute :)
http://www.w3.org/TR/html4/types.html#type-name
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
colons (":"), and periods (".").
On Aug 31, 1:03 pm, "Fabio"
> ELINTPimp wrote:
>
> > Do a search on this group for select+array
>
> Ok, I thank you to let me lost time searching for this *complex* solution
> (ah, select+multiple, not select+array) that is
yes, well, teach a man to fish and all that...plus, the first thread
was the answer, so I have no remorse =)
ELINTPimp wrote:
>
> yes, well, teach a man to fish and all that...plus, the first thread
> was the answer, so I have no remorse =)
nor utility.
I'm programming and living NGs since 10 years: if I asked something that's
because I didn't find clear/secure asnswers on the web.
Thanks again for reply to me the same way as you replyed to other people in
the NG this day.
On Fri, 31 Aug 2007 19:03:45 +0200, "Fabio"
>ELINTPimp wrote:
>
>> Do a search on this group for select+array
>
>Ok, I thank you to let me lost time searching for this *complex* solution
>(ah, select+multiple, not select+array) that is
>
>name="list[]"
>
>and not
>
>name="list"
>
>Good, this works... also if the "[]" is not valid in html4 name attribute :)
It is valid.
>http://www.w3.org/TR/html4/types.html#type-name
>
>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
>by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
>colons (":"), and periods (".").
The name attribute is not of type NAME, see the DTD (and previous
discussions).
http://www.w3.org/TR/html4/interact/forms.html#adef-name-INP UT
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
On Aug 31, 4:01 pm, "Fabio"
> ELINTPimp wrote:
>
> > yes, well, teach a man to fish and all that...plus, the first thread
> > was the answer, so I have no remorse =)
>
> nor utility.
My guidance gave you the soultion, yes?
>
> I'm programming and living NGs since 10 years: if I asked something that's
> because I didn't find clear/secure asnswers on the web.
>
I do not know your background, nor your experience level. However,
having seen this question numerous times in the past few months, I
wanted to provide an answer that would not only solve your problem but
also possible additional problems immediatly (you do have to wait for
a person to answer your question, but if a person searches and the
answer already exists, instant satifaction.
> Thanks again for reply to me the same way as you replyed to other people in
> the NG this day.
Yeah, I did feel a bit odd yesterday. I even went home early. I
apologize if I offended you or you felt that I didn't give you a solid
answer.
"Andy Hassall"
news:cstgd3deiq9qg24enfr57nledbv4cn0bub@4ax.com...
>>Good, this works... also if the "[]" is not valid in html4 name attribute
>>:)
>
> It is valid.
>
>>http://www.w3.org/TR/html4/types.html#type-name
>>
>>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
>>by any number of letters, digits ([0-9]), hyphens ("-"), underscores
>>("_"),
>>colons (":"), and periods (".").
>
> The name attribute is not of type NAME, see the DTD (and previous
> discussions).
>
> http://www.w3.org/TR/html4/interact/forms.html#adef-name-INP UT
???
this page tell exactly what I read:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
colons (":"), and periods (".").
so... NO "[]"
Fabio wrote:
> "Andy Hassall"
> news:cstgd3deiq9qg24enfr57nledbv4cn0bub@4ax.com...
>
>>> Good, this works... also if the "[]" is not valid in html4 name attribute
>>> :)
>> It is valid.
>>
>>> http://www.w3.org/TR/html4/types.html#type-name
>>>
>>> ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
>>> by any number of letters, digits ([0-9]), hyphens ("-"), underscores
>>> ("_"),
>>> colons (":"), and periods (".").
>> The name attribute is not of type NAME, see the DTD (and previous
>> discussions).
>>
>> http://www.w3.org/TR/html4/interact/forms.html#adef-name-INP UT
>
> ???
> this page tell exactly what I read:
>
> ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
> by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
> colons (":"), and periods (".").
>
> so... NO "[]"
>
>
>
If that were the case, it wouldn't work, would it? But it does. On
every server, with every version of PHP, with every browser...
It does because you're looking at the wrong stuff. As Andy said, the
name attribute is not of type NAME. Look at the DTD.
Argue all you want. ELINTPimp and Andy gave you the correct answer.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
..oO(Fabio)
>???
>this page tell exactly what I read:
>
>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
>by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
>colons (":"), and periods (".").
This section is about basic types in SGML. ID and NAME are _types_. The
name _attribute_ is usually of type CDATA, so '[]' are perfectly valid.
Micha