Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:14:47+00:00 2026-06-01T15:14:47+00:00

I’m trying to find the root cause of the error message when viewing my

  • 0

I’m trying to find the root cause of the error message when viewing my CF page, however the page still functions correctly. I have to apologize now. This is my third day using CF. I really appreciate any help

 <cfsetting showDebugOutput="Yes">
<form id="form1" name="form1" method="post" action="">

  <label for="Chris3">Please Select.<br />
  </label>
  <select name="Chris3" id="Chris3">
    <option value="COOKWARE/CUTLERY">COOKWARE/CUTLERY</option>
    <option value="BAKEWARE/ ELECTRICS">BAKEWARE/ ELECTRICS</option>
    <option selected="selected">Please Select one</option>
  </select>
  <input type="submit" name="SUBMIT" id="SUBMIT" value="Submit" />
</form>
<p>
<cfset Chris3 ="Form.Chris3">
  <cffile action="append"
  file="C:\Inetpub\wwwroot\PURGE\WS\DEPTM.txt"
  output="#Chris3#">

Error Message:

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request
Variable CHRIS3 is undefined.

The error occurred in C:\Inetpub\wwwroot\PURGE\WS\PURGE.cfm: line 29

27 :   <cffile action="append"
28 :   file="C:\Inetpub\wwwroot\PURGE\WS\DEPTM.txt"
29 :   output="#Chris3#">
30 : </p>
31 : <p>Below are Departments that have finished reviewing the purge</p>


--------------------------------------------------------------------------------

Resources: 
Check the ColdFusion documentation to verify that you are using the correct syntax. 
Search the Knowledge Base to find a solution to your problem. 


Browser   Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) 
Remote Address   192.168.97.38 
Referrer    
Date/Time   06-Apr-12 03:30 PM 

Stack Trace (click to expand)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:14:48+00:00Added an answer on June 1, 2026 at 3:14 pm

    It looks like there are two issues:

    The first issue is where you’re setting the variable Chris3. If you want it to be equal to the value passed into the form, then you need to use

        <cfset Chris3 = form.Chris3 /> 
    

    .. the way you have it written now it’s storing the literal string “form.Chris3” as the entered value.

    The second is that field does not exist until after the form is submitted. You can do one of two things to handle this. Either add a cfparam, like Scott suggested, so the value is always defined:

      <cfparam name="form.Chris3" default="" />
    

    OR you can add a check to see if the form has been submitted before you access set the value to your variable:

     <cfif StructKeyExists(form,'Chris3')> 
    

    If you used <cfparam> simply check the field’s length instead:

     <cfif Len(Trim(form.Chris3))>
    

    As far as the value showing up undefined, I don’t see anything wrong with your code. I copy and pasted it and it worked fine on my machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.