Cant render EJS file as a Response to POST request

  ejs, express, javascript

I’ve just started learning Express and Servers.


Just wanted to load another EJS page onto my localhost:4000/ path as a response after a POST request has been made for a form.

However, although I do get the response of the EJS page with the data from the req.body in the form from the client-side. I can’t seem to get the page to load on the browser.

Any ideas?

Here’s a picture to help!
enter image description here

Source: Ask Javascript Questions