PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
milleusi
Forum Commoner
Posts: 30 Joined: Mon Jun 13, 2005 3:18 am
Post
by milleusi » Mon Nov 21, 2005 4:52 pm
i need th number, values of my checkboxes. where is the problem?
select id from.....
.....
echo"<input type='checkbox' name='id[]' value='".$row['id']."' >";
......
i need all the checkbox values in a POST, but i get them only when are checked.
thx
wtf
Forum Contributor
Posts: 331 Joined: Thu Nov 03, 2005 5:27 pm
Post
by wtf » Mon Nov 21, 2005 5:00 pm
why do you need them all?
milleusi
Forum Commoner
Posts: 30 Joined: Mon Jun 13, 2005 3:18 am
Post
by milleusi » Mon Nov 21, 2005 5:07 pm
in fact i'm interested by the index of the checked box
milleusi
Forum Commoner
Posts: 30 Joined: Mon Jun 13, 2005 3:18 am
Post
by milleusi » Tue Nov 22, 2005 6:11 am
i need to send more values with the checked box. How to do that?
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Tue Nov 22, 2005 6:49 pm
you'll need to loop over the checkbox array on the php side to net out all of the values.
use a foreach loop to do that.