Keeping the values of form on page
问题 I want to keep the values chosen by the user on the form once they submit the form. This is what I tried: <cfset tx_name = ""> <cfset id_age1 = ""> <cfif isDefined("form.tx_name")> <cfset tx_name = form.tx_name> <cfif isDefined("a1")> <cfset id_age1 = form.a1> </cfif> </cfif> <cfoutput> <input type="text" name="tx_name" value="#tx_name#"> <select name="id_age1"> <cfloop from="1" to="20" index="a1"> <option value="#a1#">#a1#</option> </cfloop> </select> </cfoutput> I am getting the expected