You're creating a lot of javascript functions with the same name:
submitform. That's your problem.
Also, you're over-complicating things so badly it's amazing.
PHP Code:
$dir = opendir('newsletters/');
while (false !== ($read = readdir($dir))) {
if (strtolower(substr($read, 0, 5)) == 'issue') { //case insensitive check
$issue = substr($read, 5, 2);
echo '<a href="newpage.php?issue=' . $issue . '">Issue ' . $issue . '</a><br>';
}
}
closedir($dir);
Use that and on newpage.php replace $_POST['issue'] with $_GET['issue']