title: Select From database when multiple checkbox checked
body: <p>How can i select multiple rows from database when multiple checkbox
  have been checked. here's the code.if you look at the line where i used query string
  there is double Request that i don't know what else i have to insert.</p>
  
  <pre><code>@{
      var db = Database.Open("Checkbox");
      var sql = "SELECT * FROM Brands";
      var select = db.Query(sql);
      dynamic execute = "";
      List&lt;String&gt; selected = new List&lt;string&gt;();
      int count = 0;
      List&lt;dynamic&gt; exec = new List&lt;dynamic&gt;();
  
  
      if(IsPost){
          if(Request["List"] == null){
              Response.Redirect("~/Checkbox");
          }
          selected = Request["List"].Split(',').ToList();
  
          count = Request["List"].Count();
  
          var sqls = "SELECT * FROM Brands WHERE Name = @0 OR Name = @1";
          exec = db.Query(sqls, Request["List"], Request["List"]);
  
  
  
  }
  
  &lt;!DOCTYPE html&gt;
  &lt;html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"&gt;
  &lt;head&gt;
    &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"/&gt;
    &lt;title&gt;Checkbox Multiple&lt;/title&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      @foreach(var values in exec){
          &lt;span&gt;@values.BrandID&lt;/span&gt;
      }
  
      &lt;form method="post" action=""&gt;
      @foreach(var item in select){
      &lt;label&gt;@item.Name&lt;/label&gt;     
      &lt;input type="checkbox" multiple="multiple" name="List" value="@item.Name"&gt;&lt;br&gt;
      }
      &lt;input type="submit" value="Send"&gt;    
          &lt;/form&gt;
  &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>