i found it in the book 'php essentials'
it says 'enabling variable tracking, or placing variables in global arrays, is an option configured when the PHP engine is installed on the server. if you are unsure whether variable tracking is turned on, you can add the line <?php_track_vars?> to the beginning of your script.
i did this in frustration...🙁
oops, i can't believe what i did wrong...sticky fingers. a typo. my action = "subscripe" instead of "subscribe"
it's always the stupid stuff that will kill you...
the if/else works as expected now but for some reason, if the $subscribe fails in the if portion and the the code drops down into the then portion, i get the following error even though i get the correct "you are not subscribed". what gives?
Warning: Undefined variable: subscribe in c:\inetpub\wwwroot/subscribe.php on line 11
the new code is below so that the line numbers make sense
<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY BGCOLOR="C0C0C0">
<?
if ($subscribe) {
echo "you are subscribed";
} else {
echo "you are not subscribed";
}
?>
</BODY>
</HTML>
ross:o