Guest User

Untitled

a guest
Feb 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. app.post('/room', function(req, res){
  2. res.render('est.ejs', {
  3. title: 'Sy',
  4. user: req.body.alias
  5. });
  6. });
  7.  
  8. //est.ejs
  9. <script type="text/javascript">
  10. Sys(<%= user %>);
  11. </script>
  12.  
  13. //
  14. function Sys(user) {
  15. $(document).ready(function() {
  16. alert(user); //Uncaught ReferenceError: Test is not defined
  17. //Test is what I input inside the form
Add Comment
Please, Sign In to add comment