Welcome Guest, Not a member yet? Register   Sign In
form validation lib issue
#1

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?


 
 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB