Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emailing results form a form

Status
Not open for further replies.

dunskii

Programmer
Joined
Sep 14, 2001
Messages
107
Location
AU
when i'm emailing the results of a form ... one field is showing the result undifined ... this only happends now and then depending on what other results the form has
 
Hard to say w/out seeing the code. But is it a checkbox? Checkboxes won't pass any value at all if they aren't checked. You can overcome this problem by either using <cfparam default=&quot;something&quot;> (best placed in &quot;application.cfm&quot;), or by using a hidden form field setting a default value, i.e.,

<input type=Hidden name=formfieldname value=off>

<input type=checkbox name=formfieldname value=on>

then on result page:

<cfif #form.formfieldname# contains &quot;on&quot;>
action1
<cfelse>
action2
</cfif>
John Hoarty
jhoarty@quickestore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top