Re: [web2py] Re: Form input prolem

2014-01-23 Thread Marin Pranjić
INPUT(_name='password', _type='password') because INPUT(_password='password') is a nonsense. On Wed, Jan 22, 2014 at 8:14 PM, Lucas Schreiber lucas.schreiber.pri...@gmail.com wrote: Hi, i thought the form worked good, but unfortunally i was wrong. name = form.vars.name contains the data

[web2py] Re: Form input prolem

2014-01-22 Thread Lucas Schreiber
Hi, i thought the form worked good, but unfortunally i was wrong. name = form.vars.name contains the data from 'Name', INPUT(_name='name'), but passwords = form.vars.password is always none here again the code, with the improvements: def login(): form = FORM( 'Name', INPUT(_name='name'),

[web2py] Re: Form input prolem

2014-01-21 Thread DAL read and variables
Thank you very much, it works good :) Am Sonntag, 19. Januar 2014 19:28:23 UTC+1 schrieb Lucas Schreiber: Hi guys, i have this function: def login(): form = FORM( 'Name', INPUT(_name='name'), 'password', INPUT(_password='password'), INPUT(_type='submit')) if

[web2py] Re: Form input prolem

2014-01-20 Thread Lucas Schreiber
sure. So, there is a form where you enter a Password and a username. now, the function shall take the username and check if there is any username like that in the db. if there is such a username, the correspondending Password shall be read and seperated into a variable. now, if the Password

[web2py] Re: Form input prolem

2014-01-20 Thread Massimo Di Pierro
Security aside. This: records = SQLTABLE(dba(dba.user.name== name).select(dba.user.password), headers='fieldname:capitalize') passworddb = records[1] should probably be: passwdb = dba(dba.user.name== name).select(dba.user.password).first().passwd this: dba.person.insert(name

[web2py] Re: Form input prolem

2014-01-19 Thread Massimo Di Pierro
Code aside, can you explain what you are trying to accomplish? I think there is more of a syntax problem here. There may be a security problem too. On Sunday, 19 January 2014 12:28:23 UTC-6, Lucas Schreiber wrote: Hi guys, i have this function: def login(): form = FORM( 'Name',