Re: checkbox
| From: | Justin Patrin | Date: | Wed, 30 Jun 2004 07:54:00 +0000 |
| Subject: | Re: checkbox | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189275@lists.php.net to get a copy of this message | ||
Try foreach ($_POST['textfield'] as $num => $value);
On Wed, 30 Jun 2004 15:56:35 +0800, Aris Santillan
<aris.santillan@summitmedia.com.ph> wrote:
>
> how can process only items with checked check-box?
>
> ----------- html -------------------
>
> <html>
> <head>
> <title>Untitled Document</title>
> </head>
>
> <body>
> <form name="form1" method="post" action="">
> <p>
> <input type="checkbox" name="checkbox"
> value="checkbox">
> <input type="text" name="textfield[1]">
> </p>
> <p>
> <input type="checkbox" name="checkbox"
> value="checkbox">
> <input type="text" name="textfield[2]">
> </p>
> <p>
> <input type="checkbox" name="checkbox"
> value="checkbox">
> <input type="text" name="textfield[3]">
> </p>
> <p>
> <input type="checkbox" name="checkbox"
> value="checkbox">
> <input type="text" name="textfield[4]">
> </p>
> <p>
> <input type="checkbox" name="checkbox"
> value="checkbox">
> <input type="text" name="textfield[5]">
> </p>
> </form>
> </body>
> </html>
>
> ----------- html -------------------
>
> !DSPAM:40e26f26296421596418740!
>
--
paperCrane --Justin Patrin--