Reply to Re: [PHP] Variable $_POST vars?

Your name:

Reply:


Posted by "The.Rock" on 12/11/05 07:27

Here is an example of one of the fields:
<input name="item{number}" size=60 class="formdata" value="{item}">

I'm looping thru this form several times, so each time the name gets
incremented. Do you have an example of what your talking about?


"Stephen Johnson" <maillists@thelonecoder.com> wrote in message
news:BFC0F625.2154D%maillists@thelonecoder.com...
> On 12/10/05 9:06 PM, "The.Rock" <czimmerman01@hotmail.com> wrote:
>> Is there a way to do this?
>>
>> $var = $_POST["$var"];
>>
>> I have a form that submits data, except the name of each input field is
>> incrementing. So I need to increment the $_POST var. Any ideas?
>>
>> I can't seem to get anything to work
>>
>> Chris
>
>
> What type of field are you using? In these cases I have always passed the
> data in an array and passed the post into an array variable which I could
> then increment.
>
>
>
>
> --
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> stephen@thelonecoder.com
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> --

[Back to original 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

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