Now if I want to run it through a series of functions should I put the 
functions in the model.py? What would be the best way to do it?

On Wednesday, February 5, 2014 2:48:53 PM UTC-5, Anthony wrote:
>
> request.vars is a Storage object, so you can also do request.vars.ip.
>
> On Wednesday, February 5, 2014 2:20:21 PM UTC-5, Austin Taylor wrote:
>>
>> I found what I was looking for. request.vars returns the data in 
>> dictionary format. All I had to do was assign a variable to the name of my 
>> key in request.vars (example: ip = request.vars['ip'] and it worked. Thank 
>> you!!
>>
>> On Wednesday, February 5, 2014 10:20:35 AM UTC-5, Austin Taylor wrote:
>>>
>>> First, thank you for any help. I really appreciate the support from 
>>> these forums.
>>>
>>> I've been trying to create an input field for a user to type in an IP 
>>> address and I can't seem to figure it out how to assign it to a variable. 
>>>
>>> Tried following: 
>>> http://www.web2py.com/book/default/chapter/07#Forms-and-validators and 
>>> still seem to be missing something.
>>>
>>> I then want to assign their input to a variable, run it through my IP 
>>> checks and return the result from our SQL database.
>>>
>>> In a nutshell, how can I assign their input to a variable (I'm thinking 
>>> request.vars??) and then run it through a series of checks under 
>>> myapp/controllers and return the result.
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to