Smarty Loop for x to y with no array


/ Published in: Smarty
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {section name=waistsizes start=28 loop=40 step=1}
  2. <option value="{$smarty.section.waistsizes.index}">$smarty.section.waistsizes.index}</option>
  3. {/section}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.