Variable is executed twice and is & quot; not defined & quot; the second time around!

Hello ~

I have a weird problem at hand. I'm passing in a URL variable from the first page of one application to another. I know he spent properly on my second page, because I can get out. However... The variable is defined at the top of the page in the < head > tags, above and outside a < cfif isDefined ("form.submit") > cela... < / cfif >. The shape itself is in the body of the page. So when I navigate to the page of form, my variable displays, but then when I hit the button send answered me that this same variable is not defined, although it is not part of the function isDefined cfif and has already been correctly set when the page is loaded initially. What's a sense? Help, please!

I'm having a little trouble after you on that since you are showing only pieces of your code, but...
It seems to me that firmID is not the form. You do not show your form code, so I'm guessing.
Can you confirm that formID is indeed a value inside the form tag?

I highly suggest this scope you your variables. That prevents a lot of confusion and can make the code much easier to understand. Things like are really nothing, but might help.

Once you get this figured out, I would also propose research using the tag.

Tags: ColdFusion

Similar Questions

Maybe you are looking for