I have a form where I want the user to choose 2 different way to checkout :
Let say that the user enters his informations like his address, name and credit info.
Using Paypal Pro, at the end, I want him to be able to choose whether or not he wants to checkout through paypal or through direct payment … that would lead to a second form.
By the way, with CodeIgnieter, when following a form with another one, I got the validation process of the second one that always run, I mean when I come from the first form to the second one, in the second form I will see my error messages appears, for each field even if the user didn’t try to submit yet. Is there a way to avoid this bug ?
Thanks !
Edited: see end of the answer
You should do it as you would normally:
View:
In PHP (controller probably):
Edited: If you would like the caption of the button (visible text) to differ from the value, use
<button>element instead of the<input type="submit">: