Re: checkboxes & php
| From: | Greg | Date: | Fri, 24 Jan 2003 20:39:10 +0000 |
| Subject: | Re: checkboxes & php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133040@lists.php.net to get a copy of this message | ||
Ah, that's exactly what I was looking for. Thanks! I had the right PHP
code, just didn't have the right html :)
/Greg
"1lt John W. Holmes" <holmes072000@charter.net> wrote in message
news:00a201c2c3e8$6e2431d0$a629089b@TBHHCCDR...
> Or name them as an array, "user[]" so that you have a $_REQUEST['user']
> array. Checkboxes are a little pecular in how they come across into PHP.
If
> you search the archives you'll get some good examples.
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Richard Whitney" <rw@xend.net>
> To: "Greg" <gregchagnon@hotmail.com>
> Cc: <php-general@lists.php.net>
> Sent: Friday, January 24, 2003 3:31 PM
> Subject: Re: [PHP] checkboxes & php
>
>
> > You need to give the checkboxes unique names like user1, user2 user3
> >
> > RW
> >
> > Quoting Greg <gregchagnon@hotmail.com>:
> >
> > ### If I have 3 checkboxes labeled "user", but each one has a seperate
> value,
> > ### how do I get the values of each checkbox? For example, how would I
> tell
> > ### if
> > ### the following checkboxes are checked?
> > ###
> > ### <input type="checkbox" name="user" value="1">
> > ### <input type="checkbox" name="user" value="2">
> > ### <input type="checkbox" name="user" value="3">
> > ### <input type="submit" name="Submit" value="Submit">
> > ###
> > ###
> > ###
> > ### --
> > ### PHP General Mailing List (http://www.php.net/)
> > ### To unsubscribe, visit: http://www.php.net/unsub.php
> > ###
> > ###
> >
> >
> > --
> > Richard Whitney
> > Transcend Development
> > Producing the next phase of your internet presence.
> > rw@xend.net
> > http://xend.net
> > 602-971-2791
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>