Form Data Karyawan

On

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

Data Karyawan v2.0 sudah tersedia, silahkan Kesini. Terus klo ada pesan, oke/yes saja. Save jika form minta save ulang save dengan overwite.

Form data karyawan lengkap

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

Adi.zapAdi.zap
Contoh form data karyawan baru

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:

Connecting to FamilySearch directly from Heredis, will allow you to. Yosemite (10.10), El Capitan (10.11), Sierra (10.12), High Sierra (10.13); 350 MB. Mac serial crack. Jan 15, 2018 - Heredis 13 Pro Crack Par Torrent Mon Apr 21, 2014 12:09 am. Ispring pro 6.2 keygenHeredis Mac Serial. Keygen, iso, torrent, full. Download the product images of Heredis 2018 for Windows & Mac. Smart Search – Serial modification – Search / replace – Books – File sharing 23/12/. Heredis 2014 is the complete solution for your genealogy: Heredis will do it ALL.

echo '<input type='text' name='some_name' value='.(isset($_SESSION['some_name']) ? $_SESSION['some_name'] : ').' />

Hope it helps!
Keep on coding
Ares.

Ares DragunaAres Draguna
Prashant TapasePrashant Tapase

Form Data Karyawan Lengkap

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. Hauppauge wintv usb driver 40205 homes.

EDIT 1: My fail naming $form_contents in view and controller. Previously was wrong, now is ok.

Jv NihilistikJv Nihilistik

Not the answer you're looking for? Browse other questions tagged phpformscodeigniter or ask your own question.

Data

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 ?

thanks before for your time

Adi.zapAdi.zap

Form Data Karyawan.doc

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:

Form Data Karyawan Bpjs

echo '<input type='text' name='some_name' value='.(isset($_SESSION['some_name']) ? $_SESSION['some_name'] : ').' />

Hope it helps!
Keep on coding
Ares.

Ares DragunaAres Draguna
Prashant TapasePrashant Tapase

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.

Jv NihilistikJv Nihilistik

Not the answer you're looking for? Browse other questions tagged phpformscodeigniter or ask your own question.