Making arrays on substantially continuous surfaces the compounds being trapped in or bound to a porous medium