• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Custom page with submit form

grantus

Active member
#1
I have a custom page setup in Xenforo which contains an iframe. Inside the iframe page is my custom PHP upload script. It works fine but I hate the idea of having an iframe because it's never consistent across browsers and mobile.

So my question is - how can I have my custom upload script inside the Xenforo page? I know how to create a page with my own PHP code in it, but with my upload form I get an error when I try to submit.

I have my form action as REQUEST_URI which works fine on its own, but of course Xenforo doesn't like it. Is there a workaround?

Thanks.
 

Lawrence

Well-known member
#2
I use a page callback to generate the data that I want a visitor to see on a custom Page node.

I use a controllerPublic class to process any form data that a user may have submitted from the Page. :)