Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

pass check box value to stored procedure

$
0
0

I have a check box on the form and want to pass it check or not to my cfstoredproc.

I tried to use followign code I got invalid data error message, I tried to use cf_sql_bit, cf_sql_int, but I always get error message,

 

My stored procedure expect bit data type, but I can change what ever the check box value is for database server stored procedure.

 

Your help and information is great appreciated,

 

Regards,

 

Iccsi,

 

 

<cfstoredproc procedure="MySP">

<cfprocparam value="form.MyCheckBox" cfsqltype="cf_sql_tinyint">

<cfprocresult name="SP1" resultset="1">

</cfstoredproc>

 

 

<cfinput type="checkbox" name="MyCheckBox" value="MyCheckBox" id="MyCheckBox">


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>