<cfloop query="A">
<input type="Submit" value="Delete ID#id#" name="button">
</cfloop>
Shows up as...
[Delete ID1]
[Delete ID2]
[Delete ID3]
I have a loop that produces multiple delete buttons. The only difference between them is an id number. When the button is pressed the delete query deletes the record with an id equal to the id number at the end of the button. My problem is that I want to take the ids off of the buttons when they are displayed but I need to send them so that the query knows which id to delete. Is there a separate attribute for the submit type of input that allows you to send a value that will not show up on the button? Any help will be appreciated.
<input type="Submit" value="Delete ID#id#" name="button">
</cfloop>
Shows up as...
[Delete ID1]
[Delete ID2]
[Delete ID3]
I have a loop that produces multiple delete buttons. The only difference between them is an id number. When the button is pressed the delete query deletes the record with an id equal to the id number at the end of the button. My problem is that I want to take the ids off of the buttons when they are displayed but I need to send them so that the query knows which id to delete. Is there a separate attribute for the submit type of input that allows you to send a value that will not show up on the button? Any help will be appreciated.