----- TestEjs5 Example -------------------------- // TestEjs5 Example // Source code file: main.js // Obtain contact info from a form // and display that information on // an EJS page using method=GET. const express = require("express"); const app = express( ); app.set("view engine", "ejs"); app.get("/contact_info", (q, r) => { r.render("contact-info"); }); app.get("/contact_receipt", (q, r) => { console.log(q.query); r.render("contact-receipt", q.query); }); app.listen(3000, ( ) => { console.log("Listening on port 3000."); }); ------------------------------------------------- TestEjs2 Example

TestEjs5 Example













------------------------------------------------- TestEjs5 Example

TestEjs5 Example

Your contact information has been received
Thank you for your information.

First Name Last Name Phone Email
<%= fname %> <%= lname %> <%= phone %> <%= email %>
-------------------------------------------------