How to get post back values? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to get post back values? (/showthread.php?tid=21033) |
How to get post back values? - El Forum - 07-29-2009 [eluser]vigna[/eluser] I am using set_value function for post back values (printing out the post values in the form elements if the validation fails). The set_value function works fine for the fields where validation rule is specified. But for those fields without validation rules, the set_value function doesn't work. What should I do for the other fields to get the post values. Should I use $this->input->post('field_name') or store the post value in the flashdata and print it out in the html element What is the proper method to do this? Thanks How to get post back values? - El Forum - 07-29-2009 [eluser]LuckyFella73[/eluser] You could just set a validation rule for that fields defining "trim" as the rule. this way the field is not "requiered" but will be repopulated. |