Try changing:
print ("Instructional Greeting ONE<P>");
} else {
print ("Instructional Greeting TWO<P>");
}
to....
$f = 1;
} else {
$f = 0;
}
....Then underneath all that code add....
if ($f) {
print ("Instructional Greeting ONE<P>");
}
else {
print ("Instructional Greeting TWO<P>");
}
Code:
if(strstr($contents[$i],$REMOTE_USER)) { print ("Instructional Greeting ONE<P>");
} else {
print ("Instructional Greeting TWO<P>");
}
to....
Code:
if(strstr($contents[$i],$REMOTE_USER)) { $f = 1;
} else {
$f = 0;
}
....Then underneath all that code add....
if ($f) {
print ("Instructional Greeting ONE<P>");
}
else {
print ("Instructional Greeting TWO<P>");
}