Try foreach ($_POST['textfield'] as $num => $value);

On Wed, 30 Jun 2004 15:56:35 +0800, Aris  Santillan
<[EMAIL PROTECTED]> 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--

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

Reply via email to