Form Data Karyawan
I Hope my question is not wrong(not easy for you). to the point..
I have form with validation (check to database MySQL). like this
controller
Form Data Karyawan PDF EPUB. Form Data Karyawan PDF Ebooks. Free Form Data Karyawan PDF Books. Get Book Form Data Karyawan and Read online. Form Data Karyawan - Download as Powerpoint Presentation (.ppt /.pptx), PDF File (.pdf), Text File (.txt) or view presentation slides online.
this code is work with appear messages 'ERROR : No KTP sudah ada di data karyawan.!!!' but the form input will be reset. so I must input this form again.
Question
How to still appear the messages but the field not reset ?
thanks before for your time Halo 5 pc download torrent.
3 Answers
Form Data Karyawan.doc
This happens because of the redirect. Basically, it reloads the page. What you can do, is after the form is validated, place the inputed values in session variables. If the form is validated correctly and no errors appear, then unset the session variables, else, redirect and on the view page, by default, in each input, place what you have in the session var. kind of like this:
echo '<input type='text' name='some_name' value='.(isset($_SESSION['some_name']) ? $_SESSION['some_name'] : ').' />
Hope it helps!
Keep on coding
Ares.
Maybe the best solution is load the view which contains the form and passing all the post array to reload inputs.
And then, again in the form view, load inputs calling:
Hope this helps.
EDIT 1: My fail naming $form_contents in view and controller. Previously was wrong, now is ok.
Not the answer you're looking for? Browse other questions tagged phpformscodeigniter or ask your own question.
I Hope my question is not wrong(not easy for you). to the point..
I have form with validation (check to database MySQL). like this
controller
this code is work with appear messages 'ERROR : No KTP sudah ada di data karyawan.!!!' but the form input will be reset. so I must input this form again.
Question
How to still appear the messages but the field not reset ?
Form Data Karyawan Excel
thanks before for your time
3 Answers
This happens because of the redirect. Basically, it reloads the page. What you can do, is after the form is validated, place the inputed values in session variables. If the form is validated correctly and no errors appear, then unset the session variables, else, redirect and on the view page, by default, in each input, place what you have in the session var. kind of like this:
echo '<input type='text' name='some_name' value='.(isset($_SESSION['some_name']) ? $_SESSION['some_name'] : ').' />
Hope it helps!
Keep on coding
Ares.
Maybe the best solution is load the view which contains the form and passing all the post array to reload inputs.
And then, again in the form view, load inputs calling:
Hope this helps.
EDIT 1: My fail naming $form_contents in view and controller. Previously was wrong, now is ok.
Not the answer you're looking for? Browse other questions tagged phpformscodeigniter or ask your own question.
New Posts
- ✔ Reset Epson Adjustment Program R290
- ✔ Asbabun Nuzul Juz 30 Pdf
- ✔ Compaq Armada E500 Drivers Win98
- ✔ Xampp Control Panel V3.0.12
- ✔ Planet Cnc Usb Controller Keygen
- ✔ Free Turbocad 16 Serial Key
- ✔ Download Manga Eyeshield 21 Sub Indo Lengkap
- ✔ HRM CCSA X64FRE EN-GB DV5.iso
- ✔ Va Employee Manual
- ✔ Fast Furious 7 Mkv Download For Mac
- ✔ Drivers Behringer Bcd 3000 Windows 10
- ✔ Catz 5 Toyz Downloads
- ✔ How To Install Hysys 3.2 On Windows 7 64 Bit
- ✔ Usability Engineering Ebook Pdf Gratis
- ✔ Emco Msi Package Builder Professional Keygen Crack
- ✔ Trojan Hunter Crack Free Download
- ✔ Carecar C68 Software Download
- ✔ Jay Sankey Secret Files Torrent
- ✔ Aruba 1060 Hot Tub Manual
- ✔ Driver Canon Lbp 1120 Windows 7 64bit
- ✔ Necchi Silvia Maximatic 586 Manually
- ✔ Project Xto7 Keygen For Mac
- ✔ Sirocco Streamline 2 Gas Fire Manual
- ✔ Manga Pandora Hearts Bahasa Indonesia To English
- ✔ Cara Mengetahui Ip Server Wifi
- ✔ Mp4 Hindi Movies With English Subtitles Free Download
- ✔ Download Clean Slate Full Crack
- ✔ Lakshmi Narasimha Swamy Mp3 Songs Download
- ✔ Lovetune For Vacuum Rar
- ✔ Marine Boy Korean Movie Free Download
- ✔ So Far From The Bamboo Grove Pdf Download