What's Wrong Here? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: What's Wrong Here? (/showthread.php?tid=9529) |
What's Wrong Here? - El Forum - 06-28-2008 [eluser]charlie spider[/eluser] Ever have a problem right in front of your eyes but you just don't see it ? The problem: validation errors the instant my form is loaded for the VERY FIRST TIME !!! Can't figure out what i'm overlooking. Here's the controller: Code: function add_boot() and here's the 'modules/cms_add_boot' view: note: 'modules/cms_view' is a generic container view that all of my content gets loaded into. It's basically all of the header, navigation and footer stuff for the page with a <?=$content;?> tag in the middle of it. Code: <form acti> Thanks for any and all help. What's Wrong Here? - El Forum - 06-28-2008 [eluser]ontguy[/eluser] Is error it gives is as if the form has already been submitted? What does the output of this look like the first time? Code: print_r($_POST); What's Wrong Here? - El Forum - 06-28-2008 [eluser]Armchair Samurai[/eluser] Sounds like you've got $_POST data being submitted to the page: does the user navigate to add_boot through a form submission? What's Wrong Here? - El Forum - 06-28-2008 [eluser]charlie spider[/eluser] Armchair Samurai - you win the prize. i used a "Add New Boot" button to get to the page. Didn't know that would trigger the validation. I will change it to a regular link. ontguy - you get the consolation prize for helping out. Thanks guys! very appreciated |