I'm working on a site, and I bumped into a little problem. And I just cant seem to find out whats happening. I only have the problem on this page, nowhere else on my site. So it has to be somewhere on this page. If anyone could help me find my problem I would be really thank full.
So, I made a PM system for my site, but every time I try sending a PM the session variable with the name for the person logged in, changes to the user-id of that person. But I cant even find anywhere in my code where I change the variable.
Here's my site in .txt form: http://ptestsite.awardspace.com/sendpm.t xt
List of some variables:
$sessien = The sender
$_SESSION['navn'] = The username of the loged in person (this is what changes)
$navn and $_POST['res'] = The person the PM is to
$melding and $_POST['mes'] = the content of the PM
$emne and $_POST['sub'] = the Subject of the PM
The code might look random and unorganized. But there's a system there, and I can easily see what each part of my code does. And if some variables have weird names it's cuz some got Norwegian names. (Like: "Navn" is name in Norwegian)
Thank you for taking your time helping me!