!!! 5
html(lang="en")
head
h1
body
form(action='/login', method='post')
p
label Username
input(type='text', name='username')
p
label Password
input(type='password', name='password')
p
input(type='submit', value='Login')
p
|Register
a(href='/signin', title='registration') new user
Hi have jade template as follows:
!!! 5 html(lang="en") head h1 body form(action='/login', method='post') p label Username input(type='text', name='username') p label Password input(type='password', name='password') p input(type='submit', value='Login') p |Register a(href='/signin', title='registration') new user
and node.js has code:
// login page app.get('/login', function(req,res) { res.render('login', { title: 'Welcome'}); });
When I click on Submit button nothing happens control stays on same page. I am realy stuck at this point, any help will be apprecaited.
Thank you