Forum Moderators: coopster
this was the code i used
session_start();
print($counter);
$counter++;
session_register("counter");
1, which means that
echocannot.
Also, neither is actually a real function (it is a language construct) so you are not required to use parentheses with the argument list. In fact, if you want to pass more than one parameter to
echo, you must not enclose the parameters within parentheses.
If you turn on error_reporting [php.net], you will start getting a lot more information to help you get through your coding issues. There are some good Troubleshooting [webmasterworld.com] techniques in the WebmasterWorld PHP Library [webmasterworld.com].
I would guess that nothing is showing up here because you haven't established any value in the
$countervariable. You are printing it before you are setting it.