thanks, works perfectly ----- Original Message ----- From: "Mattia" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 12:41 PM Subject: Re: Variables and http
> > "Hacook" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php