[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    [PHP] Re: multiple checkbox help
From:       217.232.9.95
Date:       2004-05-31 14:57:21
Message-ID: 20040531165721.0a80d0e5.thomas-lists () myphorum ! com
[Download RAW message or body]

On Mon, 31 May 2004 10:50:52 -0400 bjlockie@lockie.ca (Bob Lockie) wrote:

> I tried this HTML:
> <input name="deleteID" value="1" type="checkbox">
> <input name="deleteID" value="2" type="checkbox">
> 
> $_REQUEST['deleteID'] === the last box checked.
> so I did a google search and changed my HTML to:
> 
> <input name="deleteID[]" value="1" type="checkbox">
> <input name="deleteID[]" value="2" type="checkbox">
> 
> Now the code:
> for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){
>      echo "deleting '" . $value . "'";
> }
> has the right count but how do I get the values out?


echo "deleting '" . $_REQUEST['deleteID'][$i] . "'";



regards,

thomas

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic