lukaisailovic
2 years ago
343
4
Laravel

Form not submitting data

Posted 2 years ago by lukaisailovic

I built a simple form and it's not submitting data for some reason, this is view code:

div class="panel panel-default col-md-6 col-md-offset-3" style="margin-top:150px">
<div class="panel-body">
  <form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
<input name="_token" type="hidden" value="{!! csrf_token() !!}" />

    <div class="form-group">
   <label for="inputbtc" class="col-md-2 col-md-offset-2 control-label">BTC Address</label>
   <div class="col-md-5">
     <input type="string" class="form-control" id="inputbtc" placeholder="BTC Address">
   </div>
 </div>

 <div class="form-group">
<label for="inputpassword" class="col-md-2 col-md-offset-2 control-label">Password</label>
<div class="col-md-5">
  <input type="password" class="form-control" id="inputpassword" placeholder="Password">
</div>
</div>

<div class="form-group">
    <div class="col-md-4 col-md-offset-5">
      <input type="submit" name="submitbutton" class="btn btn-default" value="Sign in / Register">

    </div>

  </form>
</div>
</div>

route:

Route::post('login', 'Auth\[email protected]')->name('dologin');

and in controller i just dd($request) and i just get values for token and submitbutton but not for other two inputs for some reason

Please sign in or create an account to participate in this conversation.