The strcmp() function should be used instead.
But in rather weak-brained moment I wrote:
Code: Select all
<?php
if ($RowїType] == "GET" && $Type == "NO")
{ // doesn't reall matter what it's doing
}
?>The $Row[Type] is from a database and the $Type is from a $_POST var.
Both strings are extremely limited: will always be NO, GET or TTA.
So, anyway, I'm wondering why it works.