Re[2]: [PHP-WIN] Newbie : Help with check boxes
| From: | Pablo Vera | Date: | Wed, 27 Dec 2000 18:22:41 +0000 |
| Subject: | Re[2]: [PHP-WIN] Newbie : Help with check boxes | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4680@lists.php.net to get a copy of this message | ||
Mujahid:
You can do something like this:
<?php
reset($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
echo "$key => $val<br>";
}
?>
this will list all variables submitted by the form. If you are
using a GET method to submit the form, change HTTP_POST_VARS to
HTTP_GET_VARS. You will need to adapt this code to your specific
needs.
Saludos,
Pablo Vera
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Wednesday, December 27, 2000, 12:05:53 PM, Mujahid wrote:
M> If only the names of checkboxs that are checked are available in the posted
M> form
M> how can we find out which one of them have been checked ?
M> -Mujahid