Hi,

 

I’m hoping someone can cast light on a problem I’m seeing with cflocation 
since moving from CF9 to CF10? I’ve stripped the issue back as much as I 
can.

 

I have two files:

 

Handler.cfm

 

<cflocation url="form.cfm?#CGI.QUERY_STRING#" addtoken="no">

 

Form.cfm

 

<cfdump var="#URL#" label="url">

<cfdump var="#form#" label="form">

 

<cfform name="formform" action="">

<cfinput name="blah">

<cfinput id="save" type="submit" value="Save" name="save">

</cfform>

 

I request handler.cfm whilst passing a number of URL variables like so:

 

/handler.cfm?action=new&FormType=LMF&new=form&Template=0

 

This redirects to form.cfm and the two cfdump tags show the four URL 
variables as expected.

 

FormType = LMF

Template = 0

action = new

new = form

 

I now click on the Save/Submit button on the form but instead of retaining 
the 4 URL variables, its dropped two of them so the list is just now:

 

Template = 0

action = new

 

Using ColdFusion 9 all 4 URL variables are retained.

 

I’ve found that if I change the cflocation tag to include the FormType like 
so:

 

<cflocation url="form.cfm?#CGI.QUERY_STRING#&FormType=LMF" addtoken="no">

 

Then it DOESN’T drop it when saving the form. WTF??

 

I also found that if I changed the action parameter of cfform to now 
specify CGI.QUERY_STRING it also retains all passed variables:

 

<cfform name="formform" action="?#CGI.QUERY_STRING#">

 
Does anyone know why this change in behaviour? While I can see a workaround 
for the basic example above, it’s not practical in the application I’ve 
been given to support. 
 
Cheers
Mark

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to