Form Validation Problem! |
[eluser]octavianmh[/eluser]
Guys- So.. I'm building a widget of sorts that takes some input from a URL (which is not included in the validation), validates a field, and then ideally does some processing and shows success if, ya know, successful. But I fear I'm doing something dumb with the form stuff, as I never get to the "process" part of the equation. Here's a snip from my controller: Code: <?php And my form view: Code: <html> And the link I'd like to use to REACH said form is: http://www.blah.com/index.php/form/8difj...52FjcKu98e Where the long string is a hash I need to process how the form should act if validation is successful. Anyway, everytime I "submit" it just dumps me back to the form itself, I never see my "validation success" echo! Boooo! Any ideas?
[eluser]bobbob[/eluser]
I think this: <input id="mobileNumber" type="text" value=""></input> should be <input name="mobileNumber" id="mobileNumber" type="text" value=""></input>
[eluser]richardporteous[/eluser]
your code looks good! except your I believe echo is being 'overwritten' to test this replace your echo with redirect('somecontroller'); or redirect to another function... |
Welcome Guest, Not a member yet? Register Sign In |