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" <[EMAIL PROTECTED]>
To: "Greg" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>:
>
> ### 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.
> [EMAIL PROTECTED]
> http://xend.net
> 602-971-2791
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to