Okay, so I just want a basic webpage that can get variables onto my
server and hopefully use other python functions. But I'm just having
troubles getting the variables from a webpage.
Here's the code I'm using:
------------------------------------------------------------------------------------------------------
import web
urls = (
'/', 'index' )
class index:
def GET(self):
i = web.input(name=None)
print 'hello' +i
if __name__ == "__main__": web.run(urls, globals())
------------------------------------------------------------------------------------------------------
and when I enter the URL with a ?name=bob
I get the error message:
TypeError: cannot concatenate 'str' and 'Storage' objects
I guess I'm just unsure what a "Storage' object is. Is there a way to
convert this to a string or whatnot? or just find out what it is with
an if statement.
Thanks for your replies, I apologize in advanced for my ineptness :p
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---