CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Displaying login information in header?

Print topic Send  topic

Author Message
franck
Posted: 07/29/2002, 5:47 AM

How to do in CCS to display visitors name like a WelcomeMessage with his mail and his number of events announced in our site?
Please if someone could help me ?
Nicole
Posted: 07/30/2002, 6:10 AM

Franck,
you can place Label field in the header and so the task is to collect the necessary information about logged in user in order to assign it to Label field.
I suppose you need CCDlookUp() function to look up details of logged in person.
Create field Before Show event like below:

'you should create and open new connection to use it in CCDlookUP() function
'in case there's no forms on header page and thus no connection were created
Dim DB<connection_name>
Set DB<connection_name> = New clsDB<connection_name>
DB<connection_name>.Open
'to access field value prefix it with the page name (it concerns all includable
' pages)
Header.Label1.Value = "User: " & CCDlookUp("emp_name", "employees", "emp_id=" & CCGetUserID(), DBintranet)
'close connection
DB<connection_name>.Close
Set DB<connection_name> = Nothing


   


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

MS Access to Web

Convert MS Access to Web.
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.