GameHub/scripty/signup.js

14 lines
713 B
JavaScript
Raw Normal View History

2024-04-21 12:48:12 +02:00
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('signup-form').addEventListener('submit', function(event) {
event.preventDefault();
// Get values from the form
var username = document.getElementById('signup-username').value;
var email = document.getElementById('signup-email').value;
var password = document.getElementById('signup-password').value;
// Here you would perform signup action, for demonstration purposes let's just log the values
console.log('Username:', username);
console.log('Email:', email);
console.log('Password:', password);
// Redirect to login page or perform further actions
});
}, false);