Re: How to define array variable while accessing it ???

From: Date: Mon, 28 Jun 2004 19:28:41 +0000
Subject: Re: How to define array variable while accessing it ???
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-35026@lists.php.net to get a copy of this message
"Matt M." <h.dudeness@gmail.com> wrote in message news:7d458020040628114862c2d150@mail.gmail.com... > > <TD><DIV ALIGN="CENTER"> <input > > type="checkbox" name="<? printf("chk_arr[%d]",$i); ?>" value="<?=$row[0]?>" ></DIV></TD> > > setup your checkbox something like this: > > <input type="checkbox" name="delete[]" value="<?=$row[0]? /> > > php will treat this as an array The closing php tag and quote of the value attribute was missing: <input type="checkbox" name="delete[]" value="<?= $row[0] ?>" /> Regards, Torsten Roehr

« previous php.db (#35026) next »