CodeIgniter Forums
form validation lib issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: form validation lib issue (/showthread.php?tid=62386)



form validation lib issue - gregor4711 - 07-08-2015

Hi,
I'm working with CI since 2 years and decide to build my own table based form generator.
My Form Lib read all the nessesary information from mysql tables and create a Form html stream stored in one variable which is passed to the view and there I simple echo the form html straem out.
Also I create an js variable which hold all the necessary js scrips. Also  this is echo out in view.
Right now it works fine with an bootstrap theme.

The last feature what I'd like to implement is server side form validation by using CI3 Form validation lib.
Actually here I have an design / architecture issue, would be happy for any help.

When I echo out the form in the view all php statements within the form (like <validation_errors();set_value()) are not proceed.
The html server? or  ci form validation lib? replace

PHP Code:
<?php statement ?>
[size]
tags with
[/size]
PHP Code:
<!---<?php statement ?>--> 




Therefore php statement are not proceed.

Any idea how can I do this at validation job in CI3?