RE: [PHP] what am I doing wrong?
| From: | Dan Joseph | Date: | Fri, 02 May 2003 19:30:22 +0000 |
| Subject: | RE: [PHP] what am I doing wrong? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146184@lists.php.net to get a copy of this message | ||
Hi,
> > > <?while ($search_result =
> > mysql_fetch_array($search_results)) {?>
> > > <INPUT
> > > TYPE="checkbox"
> > > NAME="list_serv[<? echo
> > > $search_result['list_serv_cd']; ?>]"
> > > SIZE="20"
> > > MAXLENGTH="50"
> > > VALUE="1"><? echo
> > > $search_result['list_serv_name'] ?> <BR>
> > > <?
It kind of appears that you're making an array type name value in the html.
list_serv[something] instad of just list_serv.
I would set NAME="list_serv" and VALUE="<?echo
$search_result['list_serv_cd']; ?>"
I think that will do ths trick. Right now it doesn't think
$_POST['list_serv'] is an array, which it probably isn't from seeing that.
-Dan Joseph