I have a major problem with a new installation: I cannot submit a form anymore! If I click submit, the form is not posted.
I copied a form snippet from another installation (on which there is no problem) on the same server, but it doesn't work.
I tried symplifying everything to see where the problem is, but even the code
if(isset($_POST['submit'])) {
$displaymsg = "thank you for clicking";
}
else {
$displaymsg = " <form action=\"pagewiththesnippetonit.html\" method=\"post\"><input name=\"submit\" type=\"submit\" value=\"Click Me\" /> </form>";
}
return $displaymsg ;
does not show what is in the if statement. The else statement is shown. I actually managed to get into the if statement once or twice (no idea why, nothing changed), but once I got there I wasn't able to get to the else-statement when trying to reload the file. Only with making alterations in the snippet I was able to get back to the else-statement.
To make sure that it is not a problem on the server settings I tested the same code in a different directory with the RewriteEngine set to off (htaccess)
My guess is that it has something to do with the chmod settings, but I don't even know where to begin to look.










