Welcome Guest, Not a member yet? Register   Sign In
form open tag - help
#1

[eluser]Unknown[/eluser]
Hey Folks,
I'm just learning Codeignitor, so be kind. My question is regarding multi-page forms.

On the first page of the form (view file) I have a form_open tag:
Code:
<?php echo form_open('membership/payment'); ?>
In my controller file (Membership), I have a method called Payment. It basically allows the user to view and confirm what they entered is correct before processing their order.

When I click submit on the form, it processes the form and I can access all the POST vars in the controller file (Membership) However, none of the validation rules work on the previous page.

Now, If I change the form_open tag to:
Code:
<?php echo form_open('membership'); ?>
the form validation rules work, but I can't access any of the post vars on the second page to process the form.

Does this make sense? I'm not really sure what I'm doing wrong or what the best practice may be regarding multi-page forms. Any help would be great.







Theme © iAndrew 2016 - Forum software by © MyBB