Tuturial - HTTP Request Methods not working #335

Closed
pivou opened this Issue Jun 15, 2012 · 0 comments

Projects

None yet

2 participants

pivou commented Jun 15, 2012

the form is missing action, and submit button

currently on page:

@get('/login') # or @route('/login')
def login_form():
    return '''<form method="POST">
                <input name="name"     type="text" />
                <input name="password" type="password" />
              </form>"""

should become:

@get('/login')
def login_form():
        return '''
        <form method="POST" action="/login" >
                <input name="name" type="text" />
                <input name="password" type="password" />
                <input type="submit" value="Submit" />
        </form>'''
@defnull defnull closed this in d0d3ba7 Jul 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment