[EMAIL PROTECTED] wrote:
: if ( $viewtag = "1" ) {
: print "The value of \$view was $view\n<p>";
: }
:
: i would have thought that the second statement would not print since the
: form had not been "submitted". however, instead, the if statements' print
: does get stuck into the html.
A pernicious little bug: you're using "=" when you want "==".
Also, it's a numerical comparison, so there's no need to quote the 1:
if ($viewtag == 1) {
or better yet,
if (1 == $viewtag) {
The second one is a compile error if you use "=".
-- tdk