You are here: Re: break apart a variable « PHP Programming Language « IT news, forums, messages
Re: break apart a variable

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация