Hi, snipkes, and welcome to the forum.
Making a search page outside of your phpdig directory can be a little tricky.
Here is an older post with some guidelines on how to do that. I believe there have been some slight differences in phpdig since that thread, but hopefully you'll be able to get a sense of how to do this.
If you still need help though after reading that, please don't hesitate to ask.