CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 User Id from logon form

Print topic Send  topic

Author Message
sdz
Posted: 05/07/2002, 10:10 AM

I am dealing with the forum example, triyng to make easier for answering the prefilling of fields user & topic, asuming thar are the same as original message .
Any tip?
Nicole
Posted: 05/08/2002, 4:54 AM

Hello,
to fill reply topic in CC Forum example and fill Author field with the name of logged in user put following code to before show insert event
ASP
fldtopic = dLookUp("messages", "topic", "message_id = " & ToSQL(GetParam("mid"), "Number"))
if Session("UserID")<> "" then
fldauthor = dLookUp("users", "user_name", "user_id=" & ToSQL(Session("UserID"), "Number"))
end if

PHP
$fldtopic = dLookUp("messages", "topic", "message_id = " . ToSQL(get_param("mid"), "Number"));
if (get_session("UserID")!= "")
$fldauthor = dLookUp("users", "user_name", "user_id=" . ToSQL(get_session("UserID"), "Number"));
sdz
Posted: 05/08/2002, 10:50 AM

Thank you Nicole

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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