Edit, validate, re-edit issue using set_value with optional parameter |
[eluser]billmce[/eluser]
I inserted the following in the view: <?php echo "Variable is $Company and set_value is " . set_value('Company');?> On first entry (original edit) to the view "Variable is Test Company and set_value is " On 2nd and subsequent views (I've appended 'Modified' to the original company name) "Variable is and set_value is Test Company Modified " -- I added 'print_r($data);' twice in the controller -- in the sections loading the view. On first entry: Array ( [css] => http://localhost/cif/application/css/styles.css [images] => http://localhost/cif/application/images/ [jss] => http://localhost/cif/application/jss/jquery.js [base] => http://localhost/cif/ [robots] => [title] => Creditors [pagetitle] => Screen for Creditors [UniqContactID] => 1230 [CategoryID] => 1 [Company] => Test Company [SearchName] => Test Company [Building] => [StreetNumber] => 7100 [StreetNumberSuffix] => [Unit] => [StreetName] => Test Ave., Suite 400, [StreetType] => [StreetDirection] => [Municipality] => Markham [ProvinceState] => ON [PostalCodeZip] => H0H 5J2 [Country] => CA [LTCCode] => 9 [GovernmentCode] => N [PrivacyPolicyExempt] => 0 [ProofOfClaimRequired] => 0 [AdditionalInformation] => [dataphones] => CI_DB_mysql_result Object ( [conn_id] => Resource id #44 [result_id] => Resource id #59 [result_array] => Array ( ) [result_object] => Array ( ) [current_row] => 0 [num_rows] => 1 [row_data] => ) [BtnSaveCredType] => Save Changes ) On subsequent edits (after validation fails): Array ( [css] => http://localhost/cif/application/css/styles.css [images] => http://localhost/cif/application/images/ [jss] => http://localhost/cif/application/jss/jquery.js [base] => http://localhost/cif/ [robots] => [title] => Creditors [pagetitle] => Screen for Creditors [BtnSaveCredType] => Save Revised Changes ) -- I hope that helps ... thanks for sticking with me on this. |
Welcome Guest, Not a member yet? Register Sign In |