Well I've put an example of a very simple form in php. I have to identify when it is sent by the button and when it is sent when the user returns the page.
The problem is, if you submit the form 2 times and then click the back button it says that the method was POST, it was not because the user clicked back.
Is there any way to handle this?
Here's a simple example.
<?php
session_start();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$txt = "POST";
} else {
$txt = "GET";
}
echo $txt;
?>
<br><br><br>
<form action="form.php" method="post">
<input type="text" name="ae" value="ae" />
<input type="submit" name="enviar" value="enviar" />
</form>