if they all have the same name you will receive it as a list in request.vars as the name
You will need to use jQuery to dynamically add more fields. Also, you could use a textarea instead and have them press enter, and then split the string on '\n' So considering the following html <input type="text" name="hi" id="hi1" value="hello" /> <input type="text" name="hi" id="hi2" value="world" /> This will be serialized into www.example.com?hi=hello&hi=world Which will be parsed by web2py into request.vars like so. request.vars.hi = ['hello', 'world'] -Thadeus On Fri, Feb 26, 2010 at 2:50 PM, minh <mdn0...@gmail.com> wrote: > Hi, > > I want to make a page where users can enter e-mails to send an invite. > There will be an array of input boxes (1 e-mail each box) and a send > button. > > I was wondering what the best way to generate the form dynamically > was... in case the user wanted to add more e-mails. > > Also, is there a way to iterate through the form elements so I don't > have to worry about number/name of input fields? > > Thanks, > Minh > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.