Well, if the text files that you're manipulating are all named test1, test2, ... or something similar, you can just go include($HTTP_GET_VARS['page']); and if that's the name of the file it'll work. Or, you could have 10 if() {} clauses just like the first two.