<?php
if (isset($_POST["submit"])):
$hidden = $_POST["hidden"];
$x = $hidden + 1;
else:
$x = 0;
endif;
?>
<form method ="POST" action="">
<input type="submit" name="submit" value="Increase"/>
<input type="hidden" name="hidden" value="<?php echo $x; ?>"/>
</form>
<?php echo "Kliknuto je <b>$x</b> puta"; ?>
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- <form method ="POST" action="">
<input type="submit" name="submit" value="Increase"/>
<input type="hidden" name="hidden" value="0"/>
</form>
Kliknuto je <b>0</b> puta
preferences:
163.98 ms | 405 KiB | 360 Q