why not use Javascript?

<form name="sumForm" method="post" action="mycfmpage.cfm"
onsubmit="return verify();">

....
</form>

<script language="Javascript">
<!--

function verify() 
{
  var chk;
  chk = confirm("Please verify the form fields are they correct?");
  if(chk == false)
     return false;
  else
     return true;
}

//-->
</script>


**feel free to adjust to your fit.. but I believe something like this
should suffice

On Apr 12, 2005 8:48 AM, Colin Coles <[EMAIL PROTECTED]> wrote:
> I have a form which posts to an action cfm. However, before it does that I'd 
> like the user to  confirm details by clicking a checkbox which in turn will 
> prompt him/her to press the submit button.
> Can someone tell me how to set up the form variable so that I can use it on 
> the sending page to generate a message encouraging the user to click 'Submit'?
> It seems that it should be so simple - something like <cfif form.checkbox IS 
> 'True'>
> <cfoutput>Please click Submit to continue</cfoutput>
> but I'm obvioulsy not on target here.
> Would appreciate any help
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:852
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to