Re: Stings .. Strings .. Strings .. help

From: Date: Mon, 16 Sep 2002 15:30:27 +0000
Subject: Re: Stings .. Strings .. Strings .. help
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-116533@lists.php.net to get a copy of this message
Thanx J. Holmes ... Good suggestion .. I did try that but how to get results .. I failed too. Mohd Q. ----- Original Message ----- From: "1LT John W. Holmes" <holmes072000@charter.net> To: "Mohd_Q" <ma1420@hotmail.com>; <php-general@lists.php.net> Sent: Monday, September 16, 2002 6:31 PM Subject: Re: [PHP] Stings .. Strings .. Strings .. help > Name your form elements as var[ ], instead of var1, var2, etc, and you'll > already have an array with $_POST['var'] that holds the values. > > ---John Holmes... > > ----- Original Message ----- > From: "Mohd_Q" <ma1420@hotmail.com> > To: <php-general@lists.php.net> > Sent: Monday, September 16, 2002 11:21 AM > Subject: [PHP] Stings .. Strings .. Strings .. help > > > Help .. please .. > > There is a form where I have variables > > var1 , var2 , var3, var4 ... > > ok .. > > when these variables are submitted, I tried to assign them to an array > BUT I FAILED . > > I tried something like : > > while ($i <= $varCount){ > $tchr[$i] = $_POST["({var$i})"]; > $i++; > } > > but no good .. > > any help .. > > Thanx > > MQ. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#116533) next »