I am building a point and click HTML form builder used for credit card processing. I have six checkboxes that I know the names of for credit card types (Visa, Mastercard, Amex, etc.) Once the user checks what they want to accept, these values need to be added to a select box with a name/value pair.
I assume I need to check for the existence of the checkbox, if it exists store it in a list then loop thru the list to create the dropdown....right?
<cfif isDefined('form.Visa')>
<cfset temp = listAppend(somelist, form.visa)>
</cfif>
Please assist with a code snippet for the workhorse page.
Thanks! DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
I assume I need to check for the existence of the checkbox, if it exists store it in a list then loop thru the list to create the dropdown....right?
<cfif isDefined('form.Visa')>
<cfset temp = listAppend(somelist, form.visa)>
</cfif>
Please assist with a code snippet for the workhorse page.
Thanks! DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic