hello everyone,
I got a question. i have tha following foreach loop:
{foreach from=$films item=film key=id}
<tr>
<td>
{$film.filmtitel}
</td>
<td>
{$film.zaaltitel}
</td>
<td>
plaats {$film.stoeltjes}
</td>
<td>
{$film.dag}
</td>
<td>
{$film.tijdstip}
</td>
<td>
5€
</td>
<td>
<a href="?page=winkelwagentje&action=verwijder&id={$smarty.forach.id.index}">
<img src="images/verwijderButton.png" alt="verwijderButton" title="verwijderButton"/></a>
</td>
</tr>
{/foreach}
these represent various items. now when its displayedin the browser the link gives me the url, ending with:
id=0 then the next is id=1 and so on.
When i remove 1 of these items through a button, the id's automaticly get rearranged so the index starts back with 0, then 1 and so on. What i would like to have is that if for instance i remove item with id=1 and the page gets refreshed, the id should remain deleted.
So the urls would look like:
id=0 id=2 id=3
anyone know if this is possible?