+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Html-files/signup.html b/Html-files/signup.html
index 4979b2d5..5bc2d748 100644
--- a/Html-files/signup.html
+++ b/Html-files/signup.html
@@ -258,7 +258,7 @@
SIGN U
-
+
@@ -329,6 +329,29 @@
SIGN U
}
animateCircles();
+
+ //storing user details
+ document.getElementById('reg-btn').addEventListener('click', function(event) {
+ event.preventDefault(); // Prevent form submission
+
+ // Get values from the form
+ const name = document.getElementById('name').value;
+ const email = document.getElementById('email').value;
+ const password = document.getElementById('password').value; // You may choose to hash this before storage
+
+ // Store user details in localStorage
+ const userDetails = {
+ name: name,
+ email: email,
+ password: password // Consider security practices for storing passwords
+ };
+
+ localStorage.setItem('userDetails', JSON.stringify(userDetails));
+
+ // Optionally, redirect to signed page after sign-up
+ window.location.href = 'signed.html'; // Adjust the path as necessary
+ });
+