On my website, I have implemented a contact form using express.js (4.0). I am contemplating how to manage the scenario where a user disables JavaScript.
If the last part of my routing function looks like this:
res.render('contact.jade', {
title: 'Thanks for reaching out!',
errors: errors,
now: new Date().getFullYear()
});
Will this effectively handle both AJAX and traditional form submissions? Is there a more efficient way to handle this situation? (Could this impact performance in any way?)