note 110041 deleted from reserved.variables.post by googleguy

From: Date: Fri, 14 Sep 2012 00:11:36 +0000
Subject: note 110041 deleted from reserved.variables.post by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190738@lists.php.net to get a copy of this message
Note Submitter: gvtmanaus 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>

« previous php.notes (#190738) next »