I installed a previously working script on a new server and now it doesn't work; clicking any button always shows the main menu and $action shows as an empty string. Help?
snippet:
if ($action == "" | $action == "Back to Main Menu")
{
$htmlcode .= "Crossword Puzzle Editor<br>";
$htmlcode .= "<input type=\"submit\" name=\"action\" style=\"width:250\" value=\"Enter New Crossword Clue\"><br>";
$htmlcode .= "<input type=\"submit\" name=\"action\" style=\"width:250\" value=\"Generate New Crossword Puzzle\"><br>";
$htmlcode .= "<input type=\"submit\" name=\"action\" style=\"width:250\" value=\"Search and Edit Crossword Clue\"><br>";
$htmlcode .= "<input type=\"submit\" name=\"action\" style=\"width:250\" value=\"Enter New Crossword Category\"><br>";
$htmlcode .= "<input type=\"submit\" name=\"action\" style=\"width:250\" value=\"Delete Crossword Puzzle\">";
}
// Delete a crossword puzzle by category
if ($action == "Delete Crossword Puzzle")
{
$htmlcode .= "Category:<br><select name=\"category\"><option value=\"0\" selected>Select Category";
for ($j = 0; $j <= $data; $j++)
{
$temp = $labeldata[$j];
$temp2 = $catdata[$j];
$htmlcode .= "<option value=\"$temp \">$temp2";
}
$htmlcode .= "</select><br><input type=\"submit\" name=\"action\" value=\"Delete\">";
}