Hello,

I must not understand PHP's switch/case..
The case '0' below fires when $t_mssg = "" apparently.
Is this how it's suppose to work? I would think
it would only fire if it equaled "0".

----------
print "-$t_mssg- <br />";
                
if (isset($t_mssg)) {
  switch ($t_mssg) {
    case 0:
      echo '<p><span style="color:red;">Log In Successful</span></p>';
      break;
  }
}
----------

TIA,
Donovan

--
D Brooke

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to