I have code that is not working like I want it to and I'm not sure why.
<input type="submit" name="next" value="next">
then the php...
$LimitStart = 0 ;
$LimitNext = 0 ;
then other stuff, then....
if (isset($_POST['next'])) {
If ($LimitNext == 0) {
$LimitNext = $LimitStart + 10 ;
echo "<br>" ;
echo $LimitNext ;
echo "<br>" ;
} Else {
$LimitNext = $LimitNext + 10 ;
}
My goal with this is that when someone hits the "next" button, the first time, since LimitNext will equal 0, $LimitNext will be set to whatever $LimitStart is + 10. Every time AFTER that that the "next" button is hit, it will increase $LimitNext by 10. This second part is not working. $Limitset, which is initially set to 0, obtains the value of 10 after I click the next button, but then it stays there forever and never increases. Is my syntax wrong? ($LimitNext = $Limitnext + 10 ;)