thomas
|
| Posted: 04/19/2002, 11:21 PM |
|
Hi there,
how can i define a php variable to use it in a form field ? The function PopupCal i have defined in the global functions.
i inserted in the before show insert event
$Cal1 = PopupCal($sFormname,$sFieldName);
in the caption of the formfield i insert:
date_assigned {Cal1}
but nothing is shown, whats wrong ?
|
|
|
 |
Nicole
|
| Posted: 04/20/2002, 3:18 AM |
|
Thomas,
looks like you use template pattern. If so just use set_var function to substitute template var with real value:
$tpl->set_var("Cal1", $Cal1);
|
|
|
 |
thomas
|
| Posted: 04/20/2002, 3:51 AM |
|
great, it works, but i dont know why.
thomas
|
|
|
 |
Nicole
|
| Posted: 04/22/2002, 2:42 AM |
|
Thomas,
to find more information about CC template technology refer to following article: http://www.gotocode.com/art.asp?art_id=91&
|
|
|
 |
|