Generally speaking if you architect your script and file placement correctly, answering your question will probably take as long letting the script execute.

But look at the manual for the "?", "GET", "IF", and "EXIT" commands. You can use them to do want.
_________________________
Home page: http://www.kixhelp.com/hb/