<cfform action= "#cgi.script_name#?#cgi.query_string#" method="post" name="MyForm" enctype="multipart/form-data">
I want to keep current action string when user upload file.
I have above code and add myform.myTextControlValue after "#cgi.script_name#?#cgi.query_string#" to keep my parameter.
I tried the following to replace cgi.query_string, is it the right way to handle string like following code or any other solutions?
Your help and information is great appreciated,
Regards,
Iccsi,
<cfset q = reReplaceNoCase(cgi.query_string, cgi.query_string, "MyForm.cfm&MyValue=" &
#form.MyValue#)>
<cfform action= "#cgi.script_name#?#q#" method="post" name="MyForm" enctype="multipart/form-data">