Hi,
[code=php]<?php
session_start();
if(isset($_POST[‘review’]))
echo $_POST[‘form-token’];
?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form method=”post” action=””>
<input type=”hidden” name=”form-token” value=”<?php echo md5(uniqid(microtime(),1)); ?>”>
<input type=”submit” name=”review” value=”Review”>
</form>
</body>
</html>
Does anybody know why my token stays the same when i press back and click on the submit button?
When I press back and view source the token changes in the form tho, but it’s not submitted which is weird.
Any advice would be appreciated.
Thanks