update form validation |
(05-27-2020, 06:57 PM)rafapirapo Wrote: hello, I have a problem with select options, it is necessary that when entering the edit page, bring the selected item as it appears in the database, when the post is executed if there are validations errors return to the edit page but with the select option selected according to last choice of the user, example when entering the database the option FORD the user changes to VW and submits the form and does not pass the validation of other fields must return to the edition form with the selected VW option.---- MODEL I apologize, but I will use Portuguese to better understand what is going on, I have a slight idea. Se entendi bem, você deseja que um usuário após não entrar com um campo obrigatório a tela mostrada seja a mesma em que este campo não é preenchido. Isso não é possível, mas, para tanto, basta o usuário retornar no navegador que a tela será exibida. Com o código mostrado por você nada irá acontecer, pois não existe uma série de informaçãoes necessárias, não existe um formulário sequer para isso. Por favor, não se ofenda, mas me permita lhe sugerir a leitura do manual https://codeigniter.com/user_guide/tutor...ction.html ou, acompanhar uma sequência de 4 vídeos no Youtube, em português, onde você irá encontrar exatamente o que deseja: https://www.youtube.com/watch?v=6e3KG8NrHOM Boa sorte. |
Messages In This Thread |
update form validation - by rafapirapo - 05-27-2020, 06:57 PM
RE: update form validation - by nmaa3003 - 05-28-2020, 04:13 AM
RE: update form validation - by wdeda - 05-28-2020, 08:02 AM
RE: update form validation - by rafapirapo - 05-28-2020, 01:52 PM
RE: update form validation - by wdeda - 05-28-2020, 04:59 PM
RE: update form validation - by rafapirapo - 05-28-2020, 05:35 PM
RE: update form validation - by wdeda - 05-29-2020, 05:07 AM
RE: update form validation [RESOLVED] - by rafapirapo - 05-29-2020, 06:58 PM
RE: update form validation - by cukikt0302 - 05-28-2020, 10:12 AM
RE: update form validation - by InsiteFX - 05-29-2020, 03:18 AM
|