Custom page with submit form

grantus

Active member
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.
 
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. :)
 
Back
Top Bottom