Move View Controller Files |
[eluser]razerone[/eluser]
The Validating User Guide does not say much to help me. Is there a method of validation that will suite my form below I need to add a class of has-error to my form-group div. If input field are not filed out correct or missing. And also a class of has-success to form-group div If form input filed in correct. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Code: <form id="contact-form" acti echo base_url('contactpage/messagesent');?>" method="post" role="form">
[eluser]noideawhattotypehere[/eluser]
Use client side validation for that, no point in doing it via server side
[eluser]razerone[/eluser]
[quote author="noideawhattotypehere" date="1381927912"]Use client side validation for that, no point in doing it via server side[/quote] you mean just straight to form rather than using controllers. I add the normal js but every time I clicked send it wouldn't go through JS. I have HMVC setup. Sample Layout index.php assets / images assets / js assets / css application / controllers / header.php application / controllers / home.php <-- set as default home application / controllers / footer.php <-- JavaScript Add on Bottom Of Footer application / modules / contact / controllers / contactpage.php application / modules / contact / views / contact-us.php |
Welcome Guest, Not a member yet? Register Sign In |