Backend Exp 3
Backend Exp 3
1) Aim:
Create a Signup page and store the inputted data by user in file.
2) Code:
Server.js
Index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signup Page</title>
<!-- Inline CSS for styling -->
<style>
</head>
<body>
<div class="container">
<h2>Signup Form</h2>
<form action="/signup" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required />
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
<label for="password">Password:</label>
<input type="password" id="password" name="password" required />
3) Output:
Learning outcomes