Re: Variable $_POST vars?

From: Date: Sun, 11 Dec 2005 05:16:21 +0000
Subject: Re: Variable $_POST vars?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-227289@lists.php.net to get a copy of this message
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* --

« previous php.general (#227289) next »