title: Add parameters to the form in razor
body: <p>I have this form in my view which leads me to some action in the controller. The thing is I don't know how to pass parameters to the action method.</p>
  
  <pre><code>&lt;form class="full-search" asp-controller="Movies" asp-action="Search"&gt;
      &lt;input type="search" name="searchmovie" placeholder="Search..." class="search-form"&gt;
      &lt;select name="option" form=""&gt;
          &lt;option name="option" value="category1"&gt;category 1&lt;/option&gt;
          &lt;option name="option" value="category2"&gt;category 2&lt;/option&gt;
          &lt;option name="option" value="category3"&gt;category 3&lt;/option&gt;
      &lt;/select&gt;
      &lt;i class="fas fa-caret-down"&gt;&lt;/i&gt;
      &lt;input type="submit" name="" class="submit-full-search"&gt;
      &lt;div class="search-btn-submit"&gt;
          &lt;img src="~/img/search.svg"&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And this is my controller:</p>
  
  <pre><code>[HttpGet("searchmoview/{option?}/{searchmovie}")]
  public  IActionResult Search(string option, string searchmovie)
  {
      //perform some search based on the filters
      return View("Search", data);
  }
  </code></pre>
  
  <p>But when I run my code, when I click on search the url looks like this: </p>
  
  <pre><code>https://localhost:33590/Information/Search
  </code></pre>
  
  <p>Instead of like this: </p>
  
  <pre><code>https://localhost:44320/seachmovie/category1/{searchString}
  </code></pre>
  
  <p>Any idea guys on how can I pass the parameters?</p>