Form2QS()
Last updated June 26, 2002
Version: 1 | Requires: CF5 | Library: DataManipulationLib
Description:
Creates a standard query string (list of name value pairs, separated by =, delimited by &) from all of the form variables.
Return Values:
Returns a string.
Example:
<cfset form.foo = 1>
<cfset form.goo = "Jacob Camden">
<cfoutput>foo.cfm?id=1#form2qs()#</cfoutput>
Parameters:
No arguments.
Full UDF Source:
/**
* Converts form variables to query string.
* Modified by RCamden
*
* @return Returns a string.
* @author Billy Cravens (billy@architechx.com)
* @version 1, June 26, 2002
*/
function form2qs() {
var str = "";
var field = "";
for(key in form) {
str = str & "&#key#=" & urlEncodedFormat(form[key]);
}
return str;
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016