note 110042 deleted from reserved.variables.get by googleguy
| From: | googleguy@php.net | Date: | Fri, 14 Sep 2012 00:11:52 +0000 |
| Subject: | note 110042 deleted from reserved.variables.get by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190739@lists.php.net to get a copy of this message | ||
Note Submitter: sendtowebscat at gmail dot com
----
A very simple php value increaser!
This will simply rely php to increase a variable by 1 (by +1).
NOTE: You can also use GET method.
NOTE (2): You can also use other HTML tags with php method
as well.
<?php
$increasingvar = $_POST["postponer"];
$increasingvar++;
?>
<html>
<body>
<p> This method will only increase the value. </p>
<p> Preview value: <?= $_POST["postponer"] ?> ... </p>
<p> Increased value: <?= $increasingvar ?> </p>
<form method="POST" action="self.php">
<input name="postponer" type="submit" value="<?= $increasingvar
?>" />
</form>
</body>
</html>