CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Strange label issue

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.