No.
$correct++;
Is all you need for the second condition, it automatically sets itself
back.
On Wed, 2004-03-17 at 11:52, Shane McBride wrote:
> I have a form variable I want to increment by a value of 1 each time the
> page loads. Here's what I have so far:
>
> if(!isset($correct)) {
> $correct = 0;
> } else {
> $correct = $correct++;
> }
>
> Seems like it should work?
>
> Thanks!
> Shane
--
Adam Voigt
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php