How to pass variables from js to html node
var bodyParser = require('body-parser');
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/'));
app.use(bodyParser.urlencoded({extend:true}));
app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.set('views', __dirname);
app.get('/', function(req, res){
res.render('index.html',{email:data.email,password:data.password});
});
Also in HTML:
- read only attribute in html
- img tag
- how to add an input next to each other
- p tag
- how to know which centos version is installed
- how to make navigation bar in html
- aligning image to middle in html
- scrollbar in html div
- let's encrypt ssl not working
- convert html to pdf
- background position in html
- doctype html model
- how to start using bootstrap CDN
- psd to html
- how do you code an image in html
- html h1 tag
- valorant
- images in html
- nav bar activate in jinja
- how to change the background in html
- use google font in html
- how do i make a line in html
- section tag in html
- how to use jquery