<form id="form" name="form" method="post" action="results">
    <fieldset id="checkboxbuttons">
        <legend>Select Multiple Checkboxes</legend>
        <fieldset id="checkboxbuttonsfrommarkup">
            <div>
            % for wd in c.checkList:
                <input id=${wd} type="checkbox" name=${wd} value=${wd}>
            % endfor
            </div>
    </fieldset>
    <div>
        <input type="reset" name="resetbutton" value="Reset Form">
        <input type="submit" name="checkbutton" value="Submit Form">
    </div>
</form>

On Mon, Oct 12, 2009 at 10:21 AM, gazza <[email protected]> wrote:

>
> Hello,
>
> I am having some difficulty understanding how to implement checkboxes
> in pylons.
>
> <table cellspacing=5>
> % for item in c.list:
> <tr>
>   <td>
>       ${item.description}
>   </td>
>   <td>
>       $item.price}
>   </td>
> </tr>
>
> %endfor
>
> I want to add a check box to each row and when the form gets posted
> pass the list of checkboxes to the python acton.
>
> Are there any simple examples on how to accomplish this?
>
> Much appreciated and I do apologise as I'm relatively new to pylons.
>
> Thanks,
> Garyc
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to