@@ 42-56 (lines=15) @@ | ||
39 | /** |
|
40 | * Callback for submit-button. |
|
41 | */ |
|
42 | public function callbackSubmit() |
|
43 | { |
|
44 | $this->AddOutput("<p>#callbackSubmit()</p>"); |
|
45 | ||
46 | // Get the selected items as an array |
|
47 | $items = $this->value("items"); |
|
48 | $itemsAsString = implode(", ", $items); |
|
49 | $this->AddOutput("<p>Selected items are: '$itemsAsString'."); |
|
50 | ||
51 | $this->AddOutput("<pre>" . print_r($_POST, 1) . "</pre>"); |
|
52 | $this->AddOutput("<pre>" . print_r($this["items"], 1) . "</pre>"); |
|
53 | $this->saveInSession = true; |
|
54 | ||
55 | return true; |
|
56 | } |
|
57 | ||
58 | ||
59 |
@@ 49-62 (lines=14) @@ | ||
46 | /** |
|
47 | * Callback for submit-button. |
|
48 | */ |
|
49 | public function callbackSubmit() |
|
50 | { |
|
51 | $this->AddOutput("<p>#callbackSubmit()</p>"); |
|
52 | ||
53 | $items = $this->value("selectm"); |
|
54 | $itemsAsString = implode(", ", $items); |
|
55 | $this->AddOutput("<p>Selected items are: '$itemsAsString'."); |
|
56 | ||
57 | $this->AddOutput("<pre>" . print_r($_POST, 1) . "</pre>"); |
|
58 | $this->AddOutput("<pre>" . print_r($this["selectm"], 1) . "</pre>"); |
|
59 | $this->saveInSession = true; |
|
60 | ||
61 | return true; |
|
62 | } |
|
63 | } |
|
64 |