php - Laravel - 2 forms on single page -


i have 2 forms placed in single view:

{{ form::open(array('action' => 'mycontroller@verifychangelogin')) }}  {{ form::open(array('action' => 'mycontroller@verifycreatelogin')) }} 

i have 2 post routes defined controller methods:

route::post('changelogin', array('uses' => 'mycontroller@verifychangelogin', 'before' => 'auth'));  route::post('createlogin', array('uses' => 'mycontroller@verifycreatelogin', 'before' => 'auth')); 

problem when click on submit button of second form, calls wrong route, allways 'changelogin' instead of 'createlogin'.

i have studied simmilar posts on stackoverflow, none of solutions worked me. cant find out what's wrong here. that?

are closing first form before open second?

{{ form::close() }} 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -