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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.