Home : General : Perl Programming :

General: Perl Programming: Re: [averick] PHP else problem: Edit Log

Here is the list of edits for this post
Re: [averick] PHP else problem
Try changing:

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>");
}

Last edited by:

RedRum: Oct 12, 2001, 7:23 AM

Edit Log: