This is probably basics but I can't think of a solution at the moment.
I have two dirrerent forms on a page, but before i can display the form I need to run through a wizard-like process, which is identical to both form untill certain point. The wizard code is about 50 lines of code, includes calls aot database, loops etc.
I do not want to copy it again within the same page.
I also do not want to put it in a separate include file.
What's the better way to recycle this code?