I have a page where I am trying to trim the form data entered on the previous page to clean things up and rid any extra spaces. This is the script that is on the page and it is tossing an error that I am unable to resolve. Any ideas?
<cfscript>
// Trim all form fields
for (i = 1; i lte listLen(form.fieldNames); i = i + 1) {
evaluate("form.#i# = trim(form.#i#)");
}
</cfscript>
Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |
<cfscript>
// Trim all form fields
for (i = 1; i lte listLen(form.fieldNames); i = i + 1) {
evaluate("form.#i# = trim(form.#i#)");
}
</cfscript>
Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |