|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi,
i have the following flow for a form. 1. user fills out a form and hits submit. 2. the action page uses a custom tag and inserts all the form variables as hidden variables into the body of the email and displays a simple note saying: you received a such and such form! click here to open the form. 3. the manager clicks on the button which launches the form and populates all the fields from hidden values. so far so good, my problem is out of 100 times, once or twice the step3 generates an error pointing out to the very first variable on the form saying it's undefined. if the manager refreshes the page the error goes away. I view the source on the email, and I can see all the variables defined. this application is for intranet only and all users have IE 6. does anyone know why the error happens ? thanks for the help in advance |
|
#2
|
|||
|
|||
|
Not sure about the cause but it must be in the code somewhere. Maybe try checking if the values are undefined and doing a cfdump/cfabort on the form scope to see what's in it? It may help you narrow down the cause.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
thanks kiteless for the response. i already did <cfdump> and also viewed the source. it shows every one of them is defined and has some value attached to them. any idea what goes wrong?
|
|
#4
|
|||
|
|||
|
I think the trick would be to only do the dump in the situation where the variable doesn't exist. I'm thinking that dumping the form scope when the first form variable isn't defined might help pinpoint the cause. But it is just a guess. You might also try doing some tests on the page that calls the custom tag to be sure that they are all being set before the user launches the form in step 3.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > weird variable not defined error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|