Hello -
I have created a standard compliant form with over 40 fields that I am processing through CF's FORM collection. I have validated my HTML, but when I try to read the fieldnames from the form for processing using FORM.fieldnames, I am always getting the first two fields missing! What should I be looking for when troubleshooting this kind of issue?
here is some example code to understand...
<cfif isDefined("FORM.whichform"
AND FORM.whichform EQ "blahblah">
<cfoutput>#FORM.fieldnames#</cfoutput>
<!--- print for now, I will replace with an actual query once I get all the fields!!!!! --->
</cfif>
<form name="blahblah" id="blahblah" action="<cfoutput>thispage.cfm</cfoutput>">
<input type="text" name="f1" id="f1" value="aaa" />
<input type="text" name="f2" id="f2" value="bbb" />
<input type="text" name="f3" id="f3" value="bbb" />
...
<input type="text" name="f40" id="f40" value="ccc" />
<input type="hidden" name="whichform" name="whichform" value="blahblah" />
<input type="submit" name="submit" id="submit" value="blahblah" />
</form>
This gives me as OUTPUT (after submitting, of course)
F3,F4,F5,...F40,WHICHFORM,SUBMIT
what the heck happened to the first few fields? Am I going mad?
Any assistance is appreciated.
DJ Eddie J
I have created a standard compliant form with over 40 fields that I am processing through CF's FORM collection. I have validated my HTML, but when I try to read the fieldnames from the form for processing using FORM.fieldnames, I am always getting the first two fields missing! What should I be looking for when troubleshooting this kind of issue?
here is some example code to understand...
<cfif isDefined("FORM.whichform"
<cfoutput>#FORM.fieldnames#</cfoutput>
<!--- print for now, I will replace with an actual query once I get all the fields!!!!! --->
</cfif>
<form name="blahblah" id="blahblah" action="<cfoutput>thispage.cfm</cfoutput>">
<input type="text" name="f1" id="f1" value="aaa" />
<input type="text" name="f2" id="f2" value="bbb" />
<input type="text" name="f3" id="f3" value="bbb" />
...
<input type="text" name="f40" id="f40" value="ccc" />
<input type="hidden" name="whichform" name="whichform" value="blahblah" />
<input type="submit" name="submit" id="submit" value="blahblah" />
</form>
This gives me as OUTPUT (after submitting, of course)
F3,F4,F5,...F40,WHICHFORM,SUBMIT
what the heck happened to the first few fields? Am I going mad?
Any assistance is appreciated.
DJ Eddie J