Attractor
Posts: 1
|
Posted: 04/02/2016, 9:41 AM |
|
Ok guys I need some thinkers on this 3 days same result I am missing something..
I am using sessions to display a message when logged out.. now on my index page the label is called display_logged. on the label before show I have added the following code
display_message();
I have the label displayed to html...
on my logout action I have which is on the same page
//Logout @2-02E9218A
if(strlen(CCGetParam("Logout", "")))
{
CCLogoutUser();
global $Redirect;
$Redirect = "index.php";
set_message("Logged Out Successfully");
}
//End Logout
it works perfectly with one huge problem
the message shows at the top of the page and when I right click view source this is what it looks like
Logged Out Successfully!
<!DOCTYPE HTML>
<html>
why is it setting the message out side of the html document the label is inside a div tag
|
|
|
eratech
Posts: 513
|
Posted: 04/03/2016, 3:58 AM |
|
Are you setting the value of the label to the message or does the function display_message just print or return the text (which would give the results you describe)?
You should have something like labelMessage->SetText(display_message()); in BeforeShow, otherwise the label isn't being set to anything.
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
|