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
Post a Comment