Solved it. Was not able to refresh the changes I made.

On Oct 8, 4:29 pm, ed <edbi...@rocketmail.com> wrote:
> Correction on Controller code:
> if form.accepts(request.vars, session):
>   em = request.vars.emailad
>   row=db(db.auth_user.email==em).select  (db.auth_user.first_name)
>   return dict(red=redirect(URL(r=request,f='loggedin')),name=row)
> ...........
> View:
> {{extend 'layout2.html'}}
> <p>
> <p><h3>Hi {{=name}}</h3></p>
> <p>
> .........
>
> On Oct 8, 4:04 pm, ed <edbi...@rocketmail.com> wrote:
>
> > Hi,
> > I've been trying to return a variable from a controller to a view
> > using dict() but wasn't able display it.  I have the following code:
> > Controller:
> > if form.accepts(request.vars, session):
> >             row=db(db.auth_user.email==em).select
> > (db.auth_user.first_name)
> >             return dict(red=redirect(URL(r=request,f='loggedin')),
> > name=row)
> > ...........
> > View:
> > {{extend 'layout2.html'}}
> > <p>
> > <p><h3>Hi {{=name}}</h3></p>
> > <p>
> > .........
> > Even if i used this code in my Controller:  name = "Ed" , the View
> > will display the same only "Hi None". I've been trying to figure out
> > but still a newbie. Thanks for your help.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to