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?
|
|
|
 |
|