Alexey Alexapolsky
|
Posted: 05/23/2001, 7:15 AM |
|
Some info on CC variables.
If something doesn't work see what case this variable has in your scripting
language.
There are some differences.
Variables :
Already created an initailized connection to your DB :
cn - variable in ASP
$db - db_sql class instance object in PHP
conn - Connection object in JSP
sFileName - self explanatory e.g. "AdvSearch.asp"
sTemplateFileName - same, e.g "AdvSearch.html"
sSQL - contains sql statement to be executed
sWhere - contains "where" clause appended to sSQL
sOrder - contains "order" clause appended to sSQL
sDirection - asc or desc
The ones above are mostly used in Open event.
"fld" is a standard prefix for cc field variable. For instance
if field name is price then corresponding cc variable is named fldprice.
You can manipulate them through events. Used in alsmost all events.
Template variables : variable FormAction contains taget script address ,
may be changed by call like
SetVar "FormAction","your_script.asp"
in "Before show" event.
You can replace whole parts of your html tepmplates by calls like SetVar
"Header","<h1>Nwer html code for header</h1>"
or $tpl->set_var("Header","<h1>Nwer html code for header</h1>");
provided that Header has been loaded as template , or header is a part of
html file
surrounded by tags like <!BeginHeader> some html <!--EndHeader-->
--
Regards,
Alexey
CodeCharge Support
Frank Rocco <farocco@hotmail.com> wrote in message
news:9eg6sa$2q1$1@mail.tankhill.com...
> Hello,
>
> Where can I find a reference to the variables that Codecharge generates
> along with a syntax for working with them?
>
> If I want to grab a variable in a Codecharge form, what is the syntax?
>
> Thanks
> Frank
>
>
|
|
|
|