Topic: Includeing common breaks my site when useing forms

so i have this line at the top of my site so i can get the username of whoever is logged in

define('FORUM_ROOT', './forum/');
require FORUM_ROOT . 'include/common.php';
$username = $forum_user['username'];

and whenever i submit a form i get  this insted of the actual content of my site and i cant figure out a solution
http://i.imgur.com/zWgAs52.png

Re: Includeing common breaks my site when useing forms

bump
ive found a way to bypass this by putting ALL my php code above the require and then refreshing the page but thats not really that smart and it dosent solve my problem, please halp!

Re: Includeing common breaks my site when useing forms

look topic http://punbb.informer.com/forums/topic/ … -xsrfcsrf/

ForkBB
I speak only Russian  :P