PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi all,
i have a form, on submit it takes an array of items id to be compared, then it goes to compare.php.
from there, the only link is to hit the go back button.
however if i do that, i lost my username session. well, not totally lost, but the username become truncated.
hence, i need to log out and re-login.
can anyone help?
in the login page, i used --> $_SESSION['username']=$username;
then in the compare page, i redefined $username=$row['username'];
i think somehow, it conflicted.
I change the name in the compare page into $uname=$row['username'];
and it went perfectly fine now..
thanks for the help.