Laravel 5.2 - Form do not submit -
sorry, i'm new laravel, have form:
<form action="/register" method="post"> {!! csrf_field() !!} .... <div class="form-group"> <button type="button" class="btn btn-default">register</button> </div> </form>
and route is:
route::get('/register', 'auth\authcontroller@getregister'); route::post('/register', 'auth\authcontroller@postregister');
when click on register
button nothing happen... form not submit, no errors etc.
can me ?
change
<button type="button" class="btn btn-default">register</button>
to
<button type="submit" class="btn btn-default">register</button>
and use dynamic url when deploy app server,then no error(s)
action="{{ url('/register') }}
Comments
Post a Comment