As mentioned in the title, I am attempting to retrieve the results from the form displayed below:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script>
/* Facing difficulties with this section */
</script>
</head>
<body>
<h1 style="color:#e6e8e8">Video Game Form</h1>
<form id="form" class="form">
<div class = "form-control">
<label>All Time Favorite Game:</label>
<input name="allgame" id="allgame" type="text" placeholder="Enter your favorite game">
<label>Favorite Free Game:</label>
<select name="freegame" id ="freegame">
<option>Select your favorite game</option>
<option>Fortnite</option>
<option>Apex Legends</option>
<option>Call of Duty: Warzone</option>
<option>Valorant</option>
<option>Rocket League</option>
</select>
</div>
<div class="form-control">
<label>More games you may play
<small>(Check all that apply)</small>
</label>
<label>
<input type="checkbox"
name="inp">Minecraft</input></label>
// remaining checkboxes removed for brevity
<button type="submit" value="button" class="neon-button">
Submit
</button>
</form>
</body>
</html>
This is a fundamental form as part of my journey into web development, however, I currently find myself at an impasse. If anyone can assist me in capturing and saving the results into a text file within the same directory as the HTML and CSS files, it would be greatly appreciated.