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

 settting {username} using session variable w/ PHP?

Print topic Send  topic

Author Message
George L.
Posted: 04/25/2002, 10:30 PM

Anyone know how to set a variable {username} that I can put in a header of a form, using PHP without templates?

I know how to set it using PHP+Templates like this:
$tpl->set_var("username","get_session("UserFirst"));

But what is the equivalent using non-template form?


Some help?

THANKS IN ADVANCE...
g.
Nicole
Posted: 04/26/2002, 4:48 AM

George,
to header (footer) put:
<?=$user_name ?>

In Open event assign value to $user_name var:
$user_name = get_session("UserFirst");
George L.
Posted: 04/26/2002, 9:19 AM

Thanks, but I'm stil kind of stuck. I have the recommendations in place, but I want the variable to be called on the header page something like this.

Welcome {user_name} !

I have set:
In header (footer):
<?=$user_name ?>


I have set:
In Open event value $user_name var:
$user_name = get_session("UserFirst");

I have a menu form on my header page. I also have a field on the form with the caption Welcome {user_name} !. Is this the right usage for what I'm trying to do?



   


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.