@@ 47-63 (lines=17) @@ | ||
44 | * |
|
45 | * @return boolean true if okey, false if something went wrong. |
|
46 | */ |
|
47 | public function callbackSubmit() |
|
48 | { |
|
49 | // Get the selected items as an array |
|
50 | $items = $this->form->value("items"); |
|
51 | ||
52 | // Print output for sake of this example |
|
53 | $this->form->addOutput( |
|
54 | "<p>Selected items are: '" |
|
55 | . implode(", ", $items) |
|
56 | . "'." |
|
57 | ); |
|
58 | ||
59 | // Remember values during resubmit, for sake of the example |
|
60 | $this->form->rememberValues(); |
|
61 | ||
62 | return true; |
|
63 | } |
|
64 | } |
|
65 |
@@ 58-70 (lines=13) @@ | ||
55 | * |
|
56 | * @return boolean true if okey, false if something went wrong. |
|
57 | */ |
|
58 | public function callbackSubmit() |
|
59 | { |
|
60 | $this->form->addOutput( |
|
61 | "Checked values are: " |
|
62 | . implode($this->form->value("selectm"), ", ") |
|
63 | . "</br>" |
|
64 | ); |
|
65 | ||
66 | // Remember values during resubmit, for sake of the example |
|
67 | $this->form->rememberValues(); |
|
68 | ||
69 | return true; |
|
70 | } |
|
71 | } |
|
72 |