I need to have multiple contact forms on a website using node.js – help please :)
I am creating a website for a restaurant where there will be multiple contact forms. I know this is probably stupid, but help without judgement would be much appreciated.
I am using node.js with express and nodemailer dependencies to send the forms. I have my main contact form in the footer working and sending perfectly – simple email, name, message inputs.
What I need is an additional form – separate page – for private event bookings/inquiries. This will be more thorough and have more fields. Some will be radio buttons to chose from a set of options, some will be text inputs.
I just need to know if I need to make a server2.js file or if I can handle both forms in one server file. I would think create a separate server file as it would be messy not to, no?
As well, in my main app.js file, I would just create a new XML variable and basically do the same thing correct?