I'm having a really hard time with losing the form scope variables on CFMX 7.  
I have a pretty simple form that posts to a CF page.  The form contains a 
couple of radio buttons and a select box.  The select box name is dynamically 
generated, but it shows correctly when I view the page source from the browser. 
 

On the page that processes the form, I check for a certain form variable.  If 
the variable is defined--I output the variable.  Pretty simple stuff, but it is 
really giving me a headache.  If the form is submitted without selecting 
anything...the form field is missing.  If I select anything on the form and 
submit it, the form variable magically appears.  I'm not sure if anyone can 
replicate this, but here are the steps you can to to try.

(1) Create a form that posts to a second CF page.
(2) Add two radio buttons to the form with the same name.
(3) Add a select field to the form with a unique name and a few options 
(including one with value="").

(4) On the processing page check to see if the select field is defined and dump 
the form variable.

I've been researching this (via Google Groups, MM, etc.) for the past few hours 
and have seen similar problems with no solution. Some things to note:

* I've ensured that the form completly loads--so missing form data is not the 
problem.

* I used the LiveHTTP headers extension for Firefox, and it shows that the form 
fields are being passed in every instance.

* The form data only disappears when I select nothing on the form before it is 
submitted.

* I don't think radio buttons are passed unless they are selected, but the  
select box is passed--even with an empty value.

* I can replicate the problem with FF and IE.

I look forward to hearing everyones thoughts.

Thanks,
Brad
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225762
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to