And also take a look at:

http://webpy.org/cookbook/input

On Wed, Jan 13, 2010 at 10:52 AM, Branko Vukelic <[email protected]> wrote:
> You can access the POST data as a dictionary, but it's much better to
> use form library to handle data extraction/validation for you.
>
> http://webpy.org/form
>
> On Wed, Jan 13, 2010 at 8:23 AM, Pablo Antonio <[email protected]> wrote:
>> Hello,
>>    back in the old days when I still coded in PHP, I remember there was
>> way to send data via POST and receive it structured as arrays
>> (it'd be a dictionary in Python).
>>
>> For example, one could write something like
>>    <input type="text" name="data[1][name]" />
>>    <input type="text" name="data[1][age]" />
>>
>> and would receive a structure pretty much like this
>>    {'data':
>>        {'1':
>>            {'name': "Pedro", 'age': 22}
>>        }
>>    }
>>
>> on the server-side.
>>
>> I've been told RoR works the same. How would one do something like that
>> in web.py? Is there some "standard" way to send form data organized into
>> groups?
>>
>> Thanks,
>>
>> --
>> Pablo Antonio (AKA crazy2k)
>> http://www.pablo-a.com.ar/
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "web.py" 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/webpy?hl=en.
>>
>>
>>
>>
>
>
>
> --
> Branko Vukelić
>
> http://foxbunny.tumblr.com/
> http://www.flickr.com/photos/16889...@n04/
> http://www.twitter.com/foxbunny
>



-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.


Reply via email to