hi there, i'm hoping someone can enlighten me regarding a very mysterious problem.
today all the forms on one of my websites stopped functioning properly.
they're self-validating forms and it seems very much as though they're either not receiving the submitted form data when reloaded or the php is not properly functioning on the web server, unless i'm missing something.
i built a very simple test file to see if this was indeed the case and i'm pretty stumped.
here's the test code:
<html>
<head>
</head>
<body>
<?php
if (isset($_POST['submitted']))
{
echo '<h3>submitted!</h3>';
exit();
} else
{
echo '
<form action="test.php" method="post">
<input type="submit" name="submit" value="submit" />
<input class="hidden" type="hidden" name="submitted" value="YES" />
</form>';
}
?>
</body>
</html>
one would expect that when you click the submit button, this page would reload and display "submitted!", but it doesn't, it displays the button again as though it hadn't received the submitted form data. this is the same problem i'm experiencing on the real forms, when they're submitted the page reloads as though it were the first visit and nothing gets processed. i tried this with correct html declarations and all that too, but the result was the same.
this script and the actual ones all execute just as expected when i run them locally, so it seems to me the problem is with the web servers?
any ideas / suggestions?