Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.post('/room', function(req, res){
- res.render('est.ejs', {
- title: 'Sy',
- user: req.body.alias
- });
- });
- //est.ejs
- <script type="text/javascript">
- Sys(<%= user %>);
- </script>
- //
- function Sys(user) {
- $(document).ready(function() {
- alert(user); //Uncaught ReferenceError: Test is not defined
- //Test is what I input inside the form
Add Comment
Please, Sign In to add comment