Hi, I've got a small problem that has been annoying me for a long while. In short, I've had a few pages that require the user to enter information and it creates an account for them... They work 99% of the time for all users... however, I do get some situations where users experience an inability to submit the page. Basically saying that hitting the submit button does nothing but refresh the page. This does not appear to be browser specific and can usually be solved by restarting the user's browser. (or in chrome opening a new tab)
Here is some code from my creation page that has this problem. I edited out all the sql things and replaced it to keep it simple. I have personally experienced the problem stated in about 1 in 100~ tries.
<html>
<body>
<?php
if ($_POST['Submit'])
{
//do stuff
echo "information entered: ".$_POST['test'];
}
else
{
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
Test: <input type="text" name="test">
<br>
<input type='submit' name='Submit' value="Submit">
</form>
<?php
}
?>
</body>
</html>
Does anyone have any possible insight into the cause of this problem, or what coding style I can adopt to prevent it from happening?
All input is appreciated.
Kind regards,
Doug