D 
		
				
			
		Deleted member 91401
Guest
I'm setting up a custom PHP page. 
I'm using this as my callback:
	
	
	
		
I have a folder structure like this: src/addons/Pages/Index.php
Inside the index.php file is this:
	
	
	
		
and then custompage.php is the page that has mixed html and php for submitting a POST form. the page loads fine, but as soon as I click "submit" I get the error:
Security error occurred. Please press back, refresh the page, and try again.
I've tried adding <xf:csrf /> under the <form> tag but that doesn't solve the problem either.
Any help would be massively appreciated.
				
			I'm using this as my callback:
		Code:
	
	<xf:callback class="Pages\Index" method="getHtml"></xf:callback>I have a folder structure like this: src/addons/Pages/Index.php
Inside the index.php file is this:
		PHP:
	
	<?php
namespace Pages;
class Bin
{
  public static function getHtml()
  {
    include 'custompage.php';
  }
}and then custompage.php is the page that has mixed html and php for submitting a POST form. the page loads fine, but as soon as I click "submit" I get the error:
Security error occurred. Please press back, refresh the page, and try again.
I've tried adding <xf:csrf /> under the <form> tag but that doesn't solve the problem either.
Any help would be massively appreciated.
 
 
		
 
 
		 
 
		 
 
		 
 
		