if statement doing one thing at a time
Posted: Wed Sep 14, 2011 7:45 pm
When i do this
when i do it this way it resets the counter on the first click then display on the second... is there a way to do it with one click?
Code: Select all
<?php if($_POST[reset]) {
unset($_SESSION[counter]);
unset($_SESSION[display]); } ?>
with a submit button with the name reset...