samshull / node-proxy

Deprecated: Harmony Proxies in node (no longer needed)
MIT License
162 stars 29 forks source link

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

Closed jhiraygit closed 12 years ago

jhiraygit commented 12 years ago

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

samshull commented 12 years ago

What does this have to do with node-proxy?

jhiraygit commented 12 years ago

Oops wrong thread, sorry