Trouble Getting Form to Validate |
[eluser]SpecVengeance[/eluser]
I am trying to get my form to validate, and for the life of me I can't seem to get it to work, I am using "CodeIgniter User Guide Version 1.7.2" and I just can't get it working. Code is listed, below. Contact Controller Code: <?php Contact View Code: <div id="left">
[eluser]mohsin917[/eluser]
Try this one, this is the easy way.. also read the form validation user guid contact.php controller Code: <?php contact_view.php view file Code: <html>
[eluser]SpecVengeance[/eluser]
that is the validation system that I am using, and it is not working correctly, and yes I left the submit button off in that code area. It was a mistake on my part, but it is actually there in the live script.
[eluser]mohsin917[/eluser]
Dude your form is also working. I checked it too. Just change this form_open('contact-last-7-studios'); with this form_open('contact'); Because the validation library is loaded in contact controller and in it you set the rules not in contact-last-7-studios. in form_open you have to enter the action of the form.
[eluser]SpecVengeance[/eluser]
Maybe I am doing something wrong then, because I changed that and I can't seem to get that to validate. It acts like there is nothing happening and it just reloads the page.
[eluser]n0xie[/eluser]
Does anybody else think it's ironic that someone making a website with this title Quote: $data['title_for_layout'] = "Website Redesigns | Florida Web Design Company | Last 7 Studios";can't get a basic form validation to work? |
Welcome Guest, Not a member yet? Register Sign In |