Error Occurred While Processing Request: Variable SINGLESUP is undefined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shirliana
    New Member
    • Mar 2008
    • 1

    #1

    Error Occurred While Processing Request: Variable SINGLESUP is undefined

    Error Occurred While Processing Request
    Variable SINGLESUP is undefined.


    I have a form with radio buttons for selecting yes or no answer to the question, "Do you want information on Single Supplement?"

    I have in my code:

    <input type="hidden" name="singlesup _required" value="A value must be entered for whether you want information on single supplement rooms">

    I also have:
    Would you like additional information regarding a single accommodation?
    Y <input type="radio" name="singlesup " value="yessingl esup">
    N <input type="radio" name="singlesup " value="Nosingle sup">

    On my corresponding page I have this line of code:

    <CFSET strBody = #strBody# & "Single Supplement: #singlesup##CR# ">

    Instead of getting the message stating that you need to go back and answer the question, you get the above error message.

    What am I doing wrong?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    Where do you call this cfset statement? Is there any error checking before it to check that the variable is defined?

    Comment

    • CF FAN
      New Member
      • Mar 2008
      • 50

      #3
      <CFSET strBody = #strBody# & "Single Supplement: #singlesup##CR# ">
      this is calles after form submission rt??
      give form scope ..
      Code:
      form.singlesup
      .
      sometime issue will solve just try..

      Comment

      • CF FAN
        New Member
        • Mar 2008
        • 50

        #4
        Is this issue solved?

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          The OP hasn't logged back in since posting, so you may not find out.

          Comment

          Working...