Re: Array question....
| From: | Jeff Gannaway | Date: | Sat, 22 Jul 2000 10:54:50 +0000 |
| Subject: | Re: Array question.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7689@lists.php.net to get a copy of this message | ||
At 05:11 PM 7/22/00 +0200, Leon Mergen wrote:
><form method="post" action="blah.php3">
><input type="checkbox" name="delete" value="31761">
><input type="checkbox" name="delete" value="31762">
><input type="checkbox" name="delete" value="31763">
></form>
>
>How can I make $delete an array then? Or is it automatically an array
already?
Simply add square brackets with numbers in your INPUT tags:
><form method="post" action="blah.php3">
><input type="checkbox" name="delete[0]" value="31761">
><input type="checkbox" name="delete[1]" value="31762">
><input type="checkbox" name="delete[2]" value="31763">
></form>
Good luck,
Jeff Gannaway