"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] ;
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php