Re: Re: Smarty loops and check boxes

From: Date: Wed, 13 Aug 2003 15:06:21 +0000
Subject: Re: Re: Smarty loops and check boxes
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7184@lists.php.net to get a copy of this message
<davey@php.net> wrote : > Graeme, > > Smarty is not a part of PEAR, you need to mail the Smarty Mailing > List(s) [1] for help on this. > > - Davey Smarty is not part of PEAR but QuickForm is and the question is QuickForm related. Graeme, are you using the QuickForm renderer for Smarty ? > Graeme Merrall wrote: >> Hi all. >> I've got a Smarty page that loops through an array to display a list of >> items which have a check box next to them. The idea is tha a user would >> select the items they want to remove and hot submit and they're gone. >> >> <form {$form.attributes}> >> {foreach from=$watches item=watch} >> {$watch.name} <!-- something goes here :) --> >> {/foreach} >> </form> >> >> This would get rendered as something like >> <form> >> One <checkbox name="remove[]" value="1"> >> Two <checkbox name="remove[]" value="2"> >> Three <checkbox name="remove[]" value="3"> >> </form> >> >> I'm not sure how I can create the checkbox in Quickform yet build it into >> the loop in Smarty. Any help gratefully received. >> >> Cheers, >> Graeme >

« previous php.pear.general (#7184) next »