I'm trying to figure out how to send checked options from a series of checkboxes to a text file that keeps track of what has been selected. The most I have right now is this.

```
<html>
<?php
//Get contents from zmzonSongs.txt file, put into array.
$songList = explode("\n", file_get_contents('zmzonSongs.txt'));

print "Welcome to Zmzon.  Select songs below to add to your library.";
//Print contents as checklist.
foreach($songList as $songs){
    echo "<br/><input type='checkbox' name='songList[]' value='$songs' />"$songs<br>";
}

?>

</html>

```

I need to send the values of everything that has been checked to a file like myLibrary.txt after the user hits a submit button, but every time I try adding a submit button using the echo command, my entire page stops working and comes up blank. I'm completely lost.