jeudi 11 juillet 2019

How to POST input field that are disabled/readonly with condition?

I am trying to make my input field disabled or readonly if a button is not yet pressed but I am having problems with posting/submitting it to the database after I added a condition which makes it disabled or readonly

<form action="" method="POST" class="align-center">
                            
                        <td>
                            <input class="my-2" type="hidden" name="ref" value=""> 
                            <input class="my-2" type="text" name="ref" value=""
                                @if(empty($task->start))
                                    readonly
                                @endif
                            >



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire