.
POST-Redirect-GET
post-redirect-get, signup.php, POST ed submit.php, REDIRECT thanks.php. GET thanks.php. , , submit.php, POST, . .
signup.php
-----------
...
<input type="text" name="email">
...
submit.php
----------
...
if ($_POST) {
// process data
header('Location: thanks.php');
}
...
thanks.php
----------
...
Thanks
...
NONCE
nonce . CSRF. , :
<input type="nonce" value="<?= uniqid(); ?>">
nonce ( - ), , nonce . , nonce , , .