Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Jivanmukta Newsgroups: pl.comp.lang.php Subject: nie POSTuje =?UTF-8?B?c2nEmQ==?= jeden checkbox Date: Thu, 21 Jul 2016 18:41:27 +0200 Organization: Aioe.org NNTP Server Lines: 102 Message-ID: NNTP-Posting-Host: 83.6.67.38 Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: gioia.aioe.org 1469119286 36615 83.6.67.38 (21 Jul 2016 16:41:26 GMT) X-Complaints-To: abuse@aioe.org NNTP-Posting-Date: Thu, 21 Jul 2016 16:41:26 +0000 (UTC) User-Agent: KNode/4.14.2 Cache: gioia.aioe.org 1469119286 36615 83.6.67.38 1469119286 83.6.67.38 3081 600 lTiycwQM7T1UhRlzPWIDUg 83.6.67 1 0 Xref: csiph.com pl.comp.lang.php:15190 Nie POSTuje mi się jeden checkbox na formularzu. Inne checkboxy zdefiniowane podobnie się POSTują. Inne pola też. Mam w PHP: ... 'announcement', 'name' => 'announcement')); ?>
...
...
>
>
... co daje kod HTML: ...
...
...
... Po zaznaczeniu checkbox property_buildings się POSTuje, natomiast po zaznaczeniu property_house nie. Tzn. nie ma go ani w $this->input->post ani w $_POST ani w file://input. Po wywołaniu akcji kontrolera Announcement: public function insert() { $raw_post = file_get_contents('php://input'); echo 'insert() input:';var_dump($raw_post['property_house']); $this->afterSubmit('insert'); } mam: insert() input: A PHP Error was encountered Severity: Warning Message: Illegal string offset 'property_house' Filename: controllers/announcement.php Line Number: 263 A PHP Error was encountered Severity: Notice Message: Uninitialized string offset: 0 Filename: controllers/announcement.php Line Number: 263 string '' (length=0) afterSubmit() post: string '' (length=0) Nie chodzi o limit . Ten limit jest wystarczający. Używam PHP Version 5.5.9-1ubuntu4.13 Linux pecet 3.13.0-37-generic #64- Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64. Pracuję na localhoście. Nie wiem co robię źle. Proszę o pomoc.