Form2QS()
Last updated June 26, 2002
Version: 1 | Requires: ColdFusion 5 | 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.goo = "Jacob Camden">
<cfoutput>foo.cfm?id=1#form2qs()#</cfoutput>
Parameters:
No arguments.
Full UDF Source:
<cfscript>
/**
* 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;
}
</cfscript>
Search CFLib.org
Latest Additions
Dave Anderson added
iniToStruct
20 day(s) ago
Dave Anderson added
deDupeArray
20 day(s) ago
Richard added
dice
22 day(s) ago
Isaac Dealey added
getRelative
a while ago
Top Rated
backupDatabase
Rated 5.0, 22 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)
highlightAndCrop
Rated 5.0, 4 time(s)