I have a form and don't want people to lose the information they already typed in once they submit their form and submit it. I have some older documents in my application that use something like the following:
<cfset s = iif(getCatalogs.catalog_id eq catalogId, DE("selected"), DE(""))>
<option value="#getCatalogs.catalog_id#" #s#>#getCatalogs.catalog# (#getCatalogs.catalog_id#)
I'm fairly certain that there is a different or more modern method that this. When someone submits their name in the form I want to return the good information back to the form along with a note about what was missing. The form is an entry form for a contest and so there are many input's in the form.
So, if someone types in their their name in a text input, how do I make sure that they get their name back when they forget to select an age category.
If the above code is fine I can live with that although I don't completely understand what is going on in the second and third lines.