title: Checkbox checked after form submit in smarty
body: <p>I code in smarty,In My Form there are many Checkboxes,When I check it then submit it Properly in DB,But I want that: When I open the Form next then "It should be remain check" As Checked Earlier.But My Form is not Working like this feature. I have .tpl file.My Code is Below:</p>
  
  <p></p>
  
  <pre><code>    &lt;div class="header_text"&gt;Brand&lt;/div&gt;
      &lt;table style="margin-left: 94px;"&gt;
  
      {foreach from=$interests item=record}
          &lt;tr&gt;
              &lt;td style="width: 150px;"&gt;
                  &lt;div class="interest_name"&gt;
                      &lt;div class="interest_name"&gt;
  
                      {$record.name}
                      &lt;/div&gt;
  
                  &lt;/div&gt;
              &lt;/td&gt;
                 {foreach from=$record.type item=type}
                  &lt;td style="width: 150px;"&gt;
  
  
              {* I want to check checkbox after form submit based on Previously selected Form Submission*}      
              &lt;input type="checkbox" name="plan_type[{$record.id}][]" value="{$type}" /&gt;
              {$type}
  
  
  
                      &lt;div id="comments"&gt;
                          &lt;textarea name="comments[{$record.id}][]" cols="7" rows="2" value="comment"&gt;&lt;/textarea&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
  
                  {/foreach}
              &lt;td style="..."&gt;
                  &lt;input type="checkbox" name="shop" value="Shop" /&gt;Shop
                  &lt;textarea name="comments[{$record.id}][]" cols="7" rows="2" value="comment"&gt;&lt;/textarea&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      {/foreach}
         &lt;/tr&gt;
  
  
         &lt;div class="shaukk-buttons universal-red-button home-page-buttons"&gt;
          &lt;a herf="#"&gt;Add Details&lt;/a&gt;
      &lt;/table&gt;
      &lt;input type="submit" value="enter" name="submit"&gt;
  </code></pre>