I am working on a php project that consists of an html form that allows the user to submit the bits of text, a song name, composer, and artist. Once the user fills in the form and clicks submit, the data should be stored and allow the form to be filled in again until the user pushes another button which shows all of the data that has been submitted. I have so far thought of using arrays, but I am not sure how that would work with multiple form submissions sending to the same array. Any help would be greatly appreciated.
<html>
<head>
</head>
<body>
<form method="post">
Name of song: <input type="text" name="songName"><br>
Composer: <input type="text" name="composer"><br>
Artist/Group: <input type="text" name="artist"><br>
<input type="submit" name="submit">
</form>
</body>
<?php
if (!empty($_POST['submit'])) {
//Submit the data into the array or something here
}
?>
</html>