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

Posted by Rik on 02/07/07 19:34

Auddog <will_k@hotmail.com> wrote:

> Rik,
>
> Thanks for the feed back and here is what I got from it. By placing t=
he =

> [ ]
> 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 =3D 12 would looke like:

<input name=3D"hours[12]" value=3D"somevalue">

Which on return will be interpreted by PHP as:

_POST Array
(
'hours' =3D> Array
(
12 =3D> '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

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