simple I'm sure
| From: | Keith | Date: | Wed, 14 Mar 2001 14:59:51 +0000 |
| Subject: | simple I'm sure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43845@lists.php.net to get a copy of this message | ||
Following loop works fine !
but I don't want $art_nr_1 (which is 4564)
I want to have $art_nr_$i
but if you use it you just get 1,2,3,4
for ($i=1; $i<50; $i++) :
$varid = "quant".$i ;
if ($$varid != "") {
echo
"
<input type=hidden name=\"art_nr\" value=\"$art_nr_1\">
<input type=hidden name=\"quantity\" value=\"$quant1\"> ";
}
endfor;