Created a function and want to use it later on (last line) in the following script, ..but get a parse error at the first line that calls the function.
function listmenu() {
print = "<form name=\"form2\" method=\"post\" action=\"home.php?page=manage\"><select name=\"sort\" onchange=\"document.forms['form2'].submit()\">
<option selected>Sort by</option>
<option value=\"1\">Sort by Date</option>
<option value=\"2\">Sort by Awareness(Low)</option>
<option value=\"3\">Sort by Awareness(Medium)</option>
<option value=\"4\">Sort by Awareness(High)</option>
<option value=\"5\">Sort by Past Journals</option>
<option value=\"6\">Sort by Recent Journals</option>
</select></form>";
}
$p .= "<table align=\"center\" width=\"95%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" class=\"table_border\">\n";
$p .= "<tr class=\"cells\">" . listmenu() . "</tr>";