Welcome Guest, Not a member yet? Register   Sign In
Set the value of "set_value" in controller
#2

[eluser]pilotLight_Tre[/eluser]
There are a few ways to get this done:

1) Store the array in a "flash" session. Example:

Code:
// set the session data
$this->session->set_flashdata('smsdata', $smsdata);
// get the data
$tmp_smsdata = $this->session->flashdata('smsdata');

2) Create a table to store temporarily "smsdata" values. Just delete the entries once the data has been published/finalized.

3) Use the Form Validation library. You have to load the library in order to use the set_value method. Just make sure you set the rules to all of the fields that you want the set_value method to display the temp. data even if the fields aren't required. Else, it'll display a blank field.

http://ellislab.com/codeigniter/user-gui...ation.html

Hope this helps. Good luck!


Messages In This Thread
Set the value of "set_value" in controller - by El Forum - 03-02-2009, 09:10 AM
Set the value of "set_value" in controller - by El Forum - 03-02-2009, 09:27 AM
Set the value of "set_value" in controller - by El Forum - 03-02-2009, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB