Re: [PHP-DB] Variables in a loop

2001-10-30 Thread Bruno Gimenes Pereti
try form... input name=a[] value=.. input name=a[] value=.. input name=a[] value=.. input name=a[] value=.. and for ($i=1; $i=10; $i++) { $tab[$i]=$a[$i] ;} This way $a will be a array. Hope it helps Bruno Gimenes Pereti. - Original Message - From: LeTortorec, Jean-Louis [EMAIL

Re: [PHP-DB] Variables in a loop

2001-10-30 Thread Jason G.
If you have a string that is the name of an input field, you can do one of 3 things: Ex: $sName = input.$i; //result = input1 $sName = input.$i; //result = input2 etc... 1: Variable Variables $value = $$sName; 2: If you posted the form $value = $HTTP_POST_VARS[$sName]; 3: If you used GET

Re: [PHP-DB] Variables in a loop

2001-10-29 Thread * RzE:
Original message From: LeTortorec, Jean-Louis [EMAIL PROTECTED] Date: Mon, Oct 29, 2001 at 04:03:45PM -0500 Message-ID: 615315231286D21182E40008C7B1EED23C6E76@COMPAQ3000 Subject: [PHP-DB] Variables in a loop I'm trying to write a loop to read variables I receive from a form: form ... input