[solved] CI 1.7.3 no data in $_POST array - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [solved] CI 1.7.3 no data in $_POST array (/showthread.php?tid=38524) |
[solved] CI 1.7.3 no data in $_POST array - El Forum - 02-10-2011 [eluser]SPeed_FANat1c[/eluser] Don't undestand, such simple thing but does not work. Code: <form action = "<?php echo base_url()?>admin_/groups/preview" target = ""> I press button withd class = "preview", it calls the right funciton, which is in action attribute, but there is no data in post array. This does not echo anything. Can you help me? Code: function preview() [solved] CI 1.7.3 no data in $_POST array - El Forum - 02-10-2011 [eluser]toopay[/eluser] add ';' Code: <?php echo base_url();?> [solved] CI 1.7.3 no data in $_POST array - El Forum - 02-11-2011 [eluser]SPeed_FANat1c[/eluser] The ; is not needed. It generates fine url even when I don't use it. I found that the problem was that it used the $_GET array. I didn't add attribute method = "post". I knew there was something stuppid. I usually use echo form_open() function to create a form tag and probably it automatically adds method = "post" attribute, so thats why I forget it there |