CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 PHP Variables in Forms

Print topic Send  topic

Author Message
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&

   


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

Web Database

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.