Welcome Guest, Not a member yet? Register   Sign In
how to use set_select on a form to show the old value?
#4

No. You're looking at the wrong place. I pointed to "form_dropdown" so you don't need to write the <option> yourself Inside, he will choose the current "selected" himself.
Second, no, you don't need to write selected. This is what the function outputs.
PHP Code:
        if ($input === null) {
            return ($default === true) ? ' selected="selected"' '';
        

You have error in request set_select('request', $booking->status) Why 'request'?
Simple CI 4 project for beginners codeigniter-expenses ( topic )
Reply


Messages In This Thread
RE: how to use set_select on a form to show the old value? - by ozornick - 05-14-2024, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB