I need to add and subtract to an integer variable in PHP by one, when I click the button using PHP and HTML.
I'm should not insert any number in this scene.
<HTML> <input type = "submit" name = "incr" value = '1'/> </HTML>
can I use this code.
<?php $raw = $_POST['incr']+$raw; ?>
every time when i click the button, the $raw should increase by one and if i click decrease button it should subtract by one.