Re: checkboxes & php

From: Date: Fri, 24 Jan 2003 20:37:29 +0000
Subject: Re: checkboxes & php
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-133038@lists.php.net to get a copy of this message
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 >

« previous php.general (#133038) next »