<form method="post" action="[{ $base_path }]index.php">
    <input type="hidden" name="cl" value="[{ $redirect }]">
    <input type="hidden" name="fnc" value="tobasket">
    [{foreach from=$oArticleList item=oArticle name=articles key=index}]	
    	<input type="hidden" name="aproducts[[{$smarty.foreach.articles.iteration}]][aid]" value="[{ $oArticle->oxarticles__oxid->value }]">
        <input type="hidden" name="aproducts[[{$smarty.foreach.articles.iteration}]][anid]" value="[{ $oArticle->oxarticles__oxid->value }]">
        <input type="hidden" name="aproducts[[{$smarty.foreach.articles.iteration}]][am]" value="[{ $amount_array.$index }]">
        <input type="hidden" name="aproducts[[{$smarty.foreach.articles.iteration}]][persparam]" value="[{ $persparam_array.$index }]">
    [{/foreach}]
</form>