![]() |
| Home Community Mys-Script Creative Off-Topic |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 ^^) |
|
#2
|
||||
|
||||
|
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:
__________________
![]() ![]() ![]() asp.net stole my soul. |
|
#3
|
|||
|
|||
|
Thank you
![]() That really helps me. |
|
#4
|
|||
|
|||
|
I just wanted to say thankyou too! ^_^
__________________
![]() Chocolate butterfly cat pudding. o.o ![]() And since even the programming on this forum doesnt like me anymore heres my sites address. XD http://felkyocreatures.com/index.php |
|
#5
|
||||
|
||||
|
Glad to help! ^^
__________________
![]() ![]() ![]() asp.net stole my soul. |
|
#6
|
|||
|
|||
|
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");
for($i = 0; $i < count($select); $i++)
{
//$select[$i]; my selected checkbox
}
__________________
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "Faction" for adoptables/owned adoptables | Vaporman87 | Questions and Supports | 1 | 03-04-2014 03:38 PM |
| Allow users to select gender? | quirkii | Questions and Supports | 2 | 07-07-2012 06:27 AM |
| Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] | Ashje | Addons/Mods Graveyard | 2 | 05-24-2009 03:17 AM |
What's New? |
What's Hot? |
What's Popular? |