title: smarty for loop
body: <p>By default using this code:</p>
  
  <pre><code>$value = check_input($_POST['num']);
  If (isset($value) &amp;&amp; !empty($_POST['numserials']))
          {
              for ($a = 1; $a &lt;= $value; $a++)
              {
                  $number = hash('tiger128,3',mt_rand(1000000000,9999999999));
                  while (file_exists(ROOT . '/intl/codes/' . $number))
                  {
                      $number = mt_rand(1000000000,9999999999);
                  }
                  file_put_contents(ROOT . '/intl/codes/' . $number,'');
                  echo $number . '&lt;br&gt;';
                  //$smarty-&gt;assign('number', $number);
              }
          }
  </code></pre>
  
  <p>In templated tried foreach, but no luck...
  For example, echo give's everything.</p>