![]() |
Using checkboxes to select adoptables
Hello,
I'm working on a group function to sort pets in different groups for Ruinily. It works fine so far I only have one small problem: Current it's only possible to move one creature to one group at once. Since this is unpractical if people have a lot of pets, I want to do the selection over 'checkboxes': PHP Code:
PHP Code:
PHP Code:
PHP Code:
(Sorry for my bad english ^^) |
I tried it out and "Hacking Attempt!" does appear when I try to use an array to store the values.
If there's no way to prevent it, you can always create a checkbox for each adoptables. Then do a cycle (after submitting) to verify which checkboxes were checked and had PetID values on them then push those values to an array and well, do your group thing. Like: PHP Code:
|
Thank you :happyc:
That really helps me. |
I just wanted to say thankyou too! ^_^
|
Glad to help! ^^
|
Here's what I just did getting value of multiple checkboxes
view stuff: Code:
$cells->add(new CheckBox("", "select[]", "{$id}")); Code:
$select = $mysidia->input->post("select"); |
All times are GMT -5. The time now is 07:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.