title: Laravel post form is not submitting?
body: <p>I want to make a form where you select what exercises you have done and afterwards add them to the database, but the problem is that I can't even submit my post form. The button does nothing when it is pressed.</p>
  <p>This is my view file:</p>
  <pre><code>@extends('layouts.app')
  
      @section('content')
      &lt;div class=&quot;container&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
  
      &lt;div class=&quot;col-md-8 col-md-offset-2&quot;&gt;
  
  
  
          &lt;div class=&quot;panel panel-default&quot;&gt;
              &lt;div class=&quot;panel-body&quot;&gt;
                  &lt;h2&gt;Excercise - {{$excercises[0]-&gt;hnro}}&lt;/h2&gt;
                  &lt;hr&gt;
                  &lt;div class=&quot;col-md-10&quot;&gt;
                  @if (session('error'))
                      &lt;div class=&quot;alert alert-danger&quot;&gt;
                          {{ session('error') }}
                      &lt;/div&gt;
                  @endif
                      @if (session('success'))
                          &lt;div class=&quot;alert alert-success&quot;&gt;
                              {{ session('success') }}
                          &lt;/div&gt; 
                      @endif
                      
                  &lt;form class=&quot;form-horizontal&quot; name=&quot;form&quot; method=&quot;POST&quot; action=&quot;{{ route('storeScores') }}&quot;&gt;
                  
                      &lt;div class=&quot;form-group row&quot;&gt;
                          &lt;div class=&quot;col-md-12&quot;&gt;
                          &lt;input type=&quot;url&quot; name=&quot;url&quot; id=&quot;url&quot; class=&quot;form-control&quot; placeholder=&quot;Copy the URL here&quot; required autofocus&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  
      &lt;/div&gt;
  
      @foreach($excercises as $excercise)
  
      &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;form-group col-md-3 col-md-offset-1&quot;&gt;
      &lt;select class=&quot;form-control&quot; id=&quot;select{{$excercise-&gt;tnro}}&quot; name=&quot;teht[]&quot; required&gt;
      &lt;option value=&quot;&quot;&gt;Excercise {{$excercise-&gt;tnro}}&lt;/option&gt;
      &lt;optgroup label=&quot;Choose your points&quot;&gt;
      @for ($i=0; $i&lt;=$excercise-&gt;maxpist;$i++)
      &lt;option value=&quot;{{$i}}&quot;&gt;{{$i}} points&lt;/option&gt;
      @endfor
      &lt;/optgroup&gt;
  
  
      &lt;/select&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      @endforeach
  
  
  
      &lt;div class=&quot;form-group row&quot;&gt;
                          &lt;div class=&quot;col-md-5 col-md-offset-1&quot;&gt;
                              &lt;button type=&quot;submit&quot; name=&quot;save&quot; class=&quot;btn btn- 
     primary&quot;&gt;Tallenna&lt;/button&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                              &lt;input type=&quot;hidden&quot; name=&quot;hnro&quot; value=&quot;&quot;&gt;
                              &lt;input type=&quot;hidden&quot; name=&quot;student_id&quot; value=&quot;&quot;&gt;
  
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;/div&gt;
      @endsection
  </code></pre>
  <p>This is my route:</p>
  <pre><code>Route::get('/addscoreform','HarkkaController@showExcercises');
  Route::post('/addscoreform','HarkkaController@storeScores')-&gt;name('storeScores');
  </code></pre>
  <p>And this is my controller:</p>
  <pre><code>public function storeScores(Request $request)
  {
      return redirect()-&gt;back()-&gt;with('success','Form has been sent...');
  }
  </code></pre>
  <p>My problem is that I can't even display the success message after submit! It's like the button doesn't work!</p>