Question
JS not coming into play in CFFORM
I want the hidden textbox orange to take effect when non
javascript browser or more importantly bots come by to fill out my
form. Is there any reason the JS at the bottom isnt working? BTW im
a beginneer.
<CFIF IsDefined("process")>
<!--- Send the message to yourself, when the user posts it on your site. --->
<CFMAIL to="taka-oshimi@mua.biglobe.ne.jp" from="#ContactEmail#" Subject="Contact From YourSite.Com">
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<!--- Send one to the person writing, thanking them and reminding them what they wrote. --->
<CFMAIL to="#ContactEmail#" from="From Email" Subject="The Subject!">
You wrote:
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<!--- If "Process" is not defined, let's show the form: --->
<CFELSE>
<cfform action="contact_us.cfm" method="post">
<input type="hidden" name="Process" Value="1">
<cfinput type="text" class="txtBoxes" name="ContactName" required="yes" message="Please Enter Your Name!">
<label class="txlb" accesskey="1"><span class="tx">Email (please enter an email address)</span></label>
<p>
<cfinput type="text" class="txtBoxes" name="ContactEmail" required="yes" message="Please Enter Your Email Address!">
</p>
<noscript>
<td>Enter 'orange' here:</td>
<td><input name='foil'/></td>
</noscript>
<div class="fieldset-footer">
<input type="submit" id=butComment onclick="jsAC();" value="Send">
</div>
</cfform>
</CFIF>
<script language="JavaScript" src="foil.js" type="text/JavaScript"></script>
Many thanks
<CFIF IsDefined("process")>
<!--- Send the message to yourself, when the user posts it on your site. --->
<CFMAIL to="taka-oshimi@mua.biglobe.ne.jp" from="#ContactEmail#" Subject="Contact From YourSite.Com">
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<!--- Send one to the person writing, thanking them and reminding them what they wrote. --->
<CFMAIL to="#ContactEmail#" from="From Email" Subject="The Subject!">
You wrote:
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<!--- If "Process" is not defined, let's show the form: --->
<CFELSE>
<cfform action="contact_us.cfm" method="post">
<input type="hidden" name="Process" Value="1">
<cfinput type="text" class="txtBoxes" name="ContactName" required="yes" message="Please Enter Your Name!">
<label class="txlb" accesskey="1"><span class="tx">Email (please enter an email address)</span></label>
<p>
<cfinput type="text" class="txtBoxes" name="ContactEmail" required="yes" message="Please Enter Your Email Address!">
</p>
<noscript>
<td>Enter 'orange' here:</td>
<td><input name='foil'/></td>
</noscript>
<div class="fieldset-footer">
<input type="submit" id=butComment onclick="jsAC();" value="Send">
</div>
</cfform>
</CFIF>
<script language="JavaScript" src="foil.js" type="text/JavaScript"></script>
Many thanks
