|
Revision 5, 1.0 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <!--- |
|---|
| 3 | Name : handlers/truefalse/save.cfm |
|---|
| 4 | Author : Raymond Camden |
|---|
| 5 | Created : September 21, 2004 |
|---|
| 6 | Last Updated : March 30, 2006 |
|---|
| 7 | History : tableprefix fix (rkc 3/30/06) |
|---|
| 8 | Purpose : Supports True/False, Yes/No |
|---|
| 9 | ---> |
|---|
| 10 | |
|---|
| 11 | <cfparam name="attributes.answer"> |
|---|
| 12 | <cfparam name="attributes.questionidfk"> |
|---|
| 13 | <cfparam name="attributes.owner"> |
|---|
| 14 | |
|---|
| 15 | <cfif len(attributes.answer)> |
|---|
| 16 | <cfquery datasource="#application.settings.dsn#"> |
|---|
| 17 | insert into #application.settings.tableprefix#results(owneridfk,questionidfk,truefalse) |
|---|
| 18 | values( |
|---|
| 19 | <cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="35" value="#attributes.owner#">, |
|---|
| 20 | <cfqueryparam cfsqltype="CF_SQL_VARCHAR" maxlength="35" value="#attributes.questionidfk#">, |
|---|
| 21 | <cfqueryparam cfsqltype="#application.utils.getQueryParamType(application.settings.dbtype,"CF_SQL_BIT")#" value="#attributes.answer#"> |
|---|
| 22 | ) |
|---|
| 23 | </cfquery> |
|---|
| 24 | </cfif> |
|---|
| 25 | |
|---|
| 26 | <cfsetting enablecfoutputonly=false> |
|---|
| 27 | |
|---|
| 28 | <cfexit method="exittag"> |
|---|