Re: Variables and http

From: Date: Thu, 05 Dec 2002 11:41:31 +0000
Subject: Re: Variables and http
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127128@lists.php.net to get a copy of this message
"Hacook" <hacook@free.fr> ha scritto nel messaggio news:20021205095952.25129.qmail@pb1.pair.com... > Hi all, > I have a page (to create a database) with X text fields called chpX (chp0, > chp1, chp2..Etc) that posts these variables to a php file. > I would like to know how can i get these values ? (I have also the $i > variable that tells me what is the max X) first you have to create the var name in a string, like $var = 'chp'.$i ; // $i is the number then retrive the posted value $value = $_POST[$var] ; bye

« previous php.general (#127128) next »