you can make use of the die statement. Put something like die("In else if"); in the else if and a similar die statement like die("In if"); in the if section. The die statement will print out to the page the string that you specify and stop execution of the rest of the page.