On Wednesday, February 10, 2016 at 2:01:52 PM UTC-8, prashant joshi wrote:
>
> def insert():
>     user=request.vars.usersignup
>     email=request.vars.emailsignup
>     pas=request.vars.passwordsignup
> i want to add these fields with values in database dynamically?
>

In your controller, you'd have a line like 

db.mytable.insert(userc=user clientc=client, pasc=pas)



 to match a model like

db.define_table('mytable',
   Field('userc', 'string'),
   Field('clientc', 'string'),
   Field('pasc', 'password'))


You may also want to look at using SQLFORM, which can do the insert for 
you, as well as providing the input boxes.  For an example, look at:

<URL:http://web2py.com/books/default/chapter/29/03/overview#A-simple-wiki>

/dps

-- 
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/d/optout.

Reply via email to