Forum Moderators: coopster
not all people have js enabled
And then:
if(isset($_POST['hidden_field']) && ($_POST['hidden_field'] == "hidden_field"))
{
//run code
doRedirect($_SERVER['REQUEST_URI']);
exit();
}
&& ($_POST['hidden_field'] == "hidden_field")
&& ($_POST['hidden_field'] [b]===[/b] "hidden_field")
<?php
session_start();
// Process form
if(isset($_GET['submit']) && $_GET['key'] == $_SESSION['key'])
{
// Process
echo 'processed';
}
else {
echo 'not prcoessed';
}
?>
<?php
$_SESSION['key'] = mt_rand(1, 1000);
?>
<!-- Form -->
<form action="" method="get">
<input type="hidden" name="key" value="<?php echo $_SESSION['key'] ?>" />
<input type="submit" name="submit" value="Submit" />
</form>