Posted by Auddog on 02/07/07 19:46
Here is what my input looks like from my browser (view page source):
<input name=hours['.3.'] type=text size=4 maxlength=4 >
Is that the same? I'm sorry for being slow at getting this.
A
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.tnd8n4zxqnv3q9@misant.kabel.utwente.nl...
Auddog <will_k@hotmail.com> wrote:
> Rik,
>
> Thanks for the feed back and here is what I got from it. By placing the
> [ ]
> around the $id (what's the periods for???) it will create an array for
> $hours.
Nonono.
By creating the _string_ with the id in it, you html output with for
instance id = 12 would looke like:
<input name="hours[12]" value="somevalue">
Which on return will be interpreted by PHP as:
_POST Array
(
'hours' => Array
(
12 => 'somevalue'
)
)
--
Rik Wasmus
Navigation:
[Reply to this message]
|