Hello,
Does anybody know how to use ListAppend in comination with form variables in stead of query variables?
If so can you please show me how?
I tried the following:
<form action="test.cfm" method="post">
<input type="text" name="letter" size="1" maxlength="1"><br>
<input type="submit" value="do">
</form>
<cfif IsDefined ('form.letter')>
<cfset update = Valuelist(form.letter)>
<cfoutput>list is #update#</cfoutput>
<cfset already = ListAppend(update,"#form.letter#",","
>
<cfoutput>list is now #already#</cfoutput>
</cfif>
thanx
Does anybody know how to use ListAppend in comination with form variables in stead of query variables?
If so can you please show me how?
I tried the following:
<form action="test.cfm" method="post">
<input type="text" name="letter" size="1" maxlength="1"><br>
<input type="submit" value="do">
</form>
<cfif IsDefined ('form.letter')>
<cfset update = Valuelist(form.letter)>
<cfoutput>list is #update#</cfoutput>
<cfset already = ListAppend(update,"#form.letter#",","
<cfoutput>list is now #already#</cfoutput>
</cfif>
thanx