I'm trying to create a quantiy counter that updates (+/-) in realtime using php.
<?php $q = 1; ?>
Quantity: <button type="button" class ="button Minus" onClick="<?php $q = $q--; ?>">-</button>
<?php echo $q; ?>
<button type="button" class="button Plus" onClick="<?php $q = $q++; ?>">+</button>
It displays properly, but the onclick events are not updating the "$q" variable that is being echoed. Any tips?