Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Error Occurred While Processing Request: Variable SINGLESUP is undefined

Question posted by: Shirliana (Newbie) on March 25th, 2008 07:04 PM
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="yessinglesup">
N <input type="radio" name="singlesup" value="Nosinglesup">

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's Avatar
acoder
Site Moderator
11,628 Posts
March 26th, 2008
02:08 PM
#2

Re: Error Occurred While Processing Request: Variable SINGLESUP is undefined
Welcome to TSDN!

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

Reply
CF FAN's Avatar
CF FAN
Member
50 Posts
April 3rd, 2008
11:56 AM
#3

Re: Error Occurred While Processing Request: Variable SINGLESUP is undefined
<CFSET strBody = #strBody# & "Single Supplement: #singlesup##CR#">
this is calles after form submission rt??
give form scope ..
Expand|Select|Wrap|Line Numbers
  1. form.singlesup
.sometime issue will solve just try..

Reply
CF FAN's Avatar
CF FAN
Member
50 Posts
April 8th, 2008
05:12 AM
#4

Re: Error Occurred While Processing Request: Variable SINGLESUP is undefined
Is this issue solved?

Reply
acoder's Avatar
acoder
Site Moderator
11,628 Posts
April 8th, 2008
10:25 AM
#5

Re: Error Occurred While Processing Request: Variable SINGLESUP is undefined
The OP hasn't logged back in since posting, so you may not find out.

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,873 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Coldfusion Forum Contributors