[snip]
Pablo Gosse wrote:
> [snip]
> If the elements all live within the same form, you can add [] to the
>end of the name/id attribute, and then all checkboxes with the
> same name will be accessible in an array. So "checkboxname[]" will
> show up as $_POST['checkboxname'] on the receiving en
[snip]
If the elements all live within the same form, you can add [] to the end
of the name/id attribute, and then all checkboxes with the same name
will be accessible in an array. So "checkboxname[]" will show up as
$_POST['checkboxname'] on the receiving end.
[/snip]
Can I do
$MyArray = $_POST
uot;nothing selected"; // even an array containing one occurrence is
sufficient.
I believe all this is correct. Good luck,
Warren Vail
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 1:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing marke
[snip]
I create a list of records from a DB and each has a check box. What is
the best way to select those that were checked after the form is
submitted?
[/snip]
If the elements all live within the same form, you can add [] to the end
of the name/id attribute, and then all checkboxes with the sa
On Tue, 02 Nov 2004 13:38:03 -0800, Todd Cary <[EMAIL PROTECTED]> wrote:
> I create a list of records from a DB and each has a check box. What is
> the best way to select those that were checked after the form is submitted?
Have a look at how the form data is coming across, you should see the
ans
[snip]
I create a list of records from a DB and each has a check box. What is
the best way to select those that were checked after the form is
submitted?
[/snip]
Loop through the results of the checkbox array which should be
associated with a value from the database and do your selection based o
I create a list of records from a DB and each has a check box. What is
the best way to select those that were checked after the form is submitted?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7 matches
Mail list logo