set_value In Codeigniter4 |
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...#set_value
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" >
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.
|
Welcome Guest, Not a member yet? Register Sign In |