Re: Variables and http
| From: | Tristan Carron | Date: | Thu, 05 Dec 2002 13:18:53 +0000 |
| Subject: | Re: Variables and http | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127141@lists.php.net to get a copy of this message | ||
thanks, works perfectly
----- Original Message -----
From: "Mattia" <mattia.c@libero.it>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Thursday, December 05, 2002 12:41 PM
Subject: Re: Variables and http
>
> "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
>
>