Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

cgi.script_name cgi.query_string

$
0
0

<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">


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>