Skip to main content
Inspiring
October 29, 2013
Question

cgi.script_name cgi.query_string

  • October 29, 2013
  • 0 replies
  • 5083 views

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

    This topic has been closed for replies.