My friends, I have that code bellow working hell:

CONTROLLER:
def index3():
    num1 = ''
    if request.post_vars:
        num1 = str(request.post_vars.num1)
    return locals()


VIEW INDEX3.HTML:
{{extend 'layout.html'}}
<h1>Request Vars</h1>
<form method='post'>
    <input type='text' name='num1' />
    <input type='submit' value='Pesquisar' />
</form>


<h3>
    O DSLAM pesquisado foi o: {{=num1}}
</h3>


I only want to change the name of the variable of 'num1' to 'hostname'.
I change the name of this variable through all the code, the {{=hostname}} 
stop to show the value of text inserted in the form, I change the name of 
variable to other names and still don't work.

How can I solve this problem?

-- 
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