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

From: Date: Mon, 16 Sep 2002 15:31:06 +0000
Subject: Re: Stings .. Strings .. Strings .. help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116532@lists.php.net to get a copy of this message
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.

« previous php.general (#116532) next »