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

Re: cfmail trigger by select list

$
0
0

I would just submit the form to its own page. Yes, using the submit button. For example,

 

<cfif isDefined("form.mySelect") and form.mySelect is 1>

<!--- Send mail  --->

<cfelse>

<!--- Do something else or nothing --->

</cfif>

 

<cfform action="#cgi.SCRIPT_NAME#">

<cfselect name="mySelect">

<option value="1">Yes</option>

<option value="0">No</option>

</cfselect>

<cfinput name="sbmt" type="submit" value="send">

</cfform>


Viewing all articles
Browse latest Browse all 21760

Trending Articles



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