set_value In Codeigniter4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: set_value In Codeigniter4 (/showthread.php?tid=75445) |
set_value In Codeigniter4 - mlsf - 02-07-2020 how it works set_value In Codeigniter4 ? I call helper form but no works... RE: set_value In Codeigniter4 - jreklund - 02-07-2020 You will need to provide some code, so we can see why it's not working. I can only refer to the manual at this time: https://codeigniter4.github.io/userguide/helpers/form_helper.html#set_value RE: set_value In Codeigniter4 - mlsf - 02-07-2020 I think when I return to form the values entered should be kept ... but it doesn't ----- Controller ---- PHP Code: <?php namespace App\Controllers; ------ View ----- PHP Code: <form action="<?php echo base_url(); ?>/account/login" method="post" > RE: set_value In Codeigniter4 - jreklund - 02-07-2020 Haven't tested your code, but I think it's your redirect that's the problem. Your values aren't stored in $_POST after a redirect have been made. You need to run both the view and functionality in the same method. |