Robert
|
Posted: 01/31/2002, 4:42 PM |
|
I'm new to CC so please pardon the simple question. I've RTFM and can't find the answer.
I am passing a userID to a form. In the form title I wish to resolve the users name from the userID. So instead of the form title saying "Cancer Treatments" it would say "Cancer Treatments for John Smith"
Any thoughts on how to accomplish this ?
Thank you !
-Robert
|
|
|
Nicole
|
Posted: 02/01/2002, 12:45 AM |
|
Robert,
- for template pattern
in form caption enter: Cancer Treatments {name}
in Open event use code like:
PHP
if (get_param("userID") != "")
$tpl->set_var("name", " for ". get_param("userID"));
ASP
if GetParam("userID") <> "" then
SetVar "name", " for " & GetParam("userID")
end if
- for templateless patter
in form caption enter
PHP
Cancer Treatments <?=$name ?>
ASP
Cancer Treatments <%=name %>
in Open event use code like:
PHP
if (get_param("userID") != "")
$name = get_param("userID");
ASP
if GetParam("userID") <> "" then
name = GetParam("userID")
end if
|
|
|
Robert
|
Posted: 02/01/2002, 10:03 AM |
|
Nicole;
Thank you for the info on using Form events and the distinction between templates and non-templates.
|
|
|
|