samshull/node-proxy

Jade and Node.js : no action when click on submit on post method

Closed this issue · 2 comments

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

What does this have to do with node-proxy?

Oops wrong thread, sorry