- Original Message -
From: "Matt Matijevich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 12, 2004 4:18 PM
Subject: RE: [PHP] to array or not to array..
> [snip]
> That works great, I am messing myself up, howev
The way I deal with this is one of two ways. An easy way is to populate
hidden fields in the page with the indexes of the users, thwn loop
through those, checking the indexes of the arrays sent back.
User 5
User 7
Another is to loop through, say, records from the DB and use their IDs
for th
[snip]
That works great, I am messing myself up, however because I am using
checkboxes so when I run this, if I have unchecked the checkbox, the
value
doesn't come through and I want an unchecked box to be 0 for example so
I
may need some javascript...
[/snip]
Can only one option be checked per us
ssage-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 3:00 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] to array or not to array..
Try adapting like this:
foreach ($_POST as $key => $val){
#display each i
Try adapting like this:
foreach ($_POST as $key => $val){
#display each item from submitted form
print "$key: $val";
}
Shawn
5 matches
Mail list logo