Question
Multiple buttons for same action page
I have a cfform with an action page.
I have two buttons at the bottom with different labels, like button 1 and button 2, that call this action page to insert data. After the insert, the page needs to be redirected page 1 if button 1 was selected, and redirected to page 2 if button 2 was selected.
How can I separate the two so that they go to different forms ?
I tried passing a variable in the cfform action, but it applies to both buttons, thus both go to the same place, and I cannot seem to separate.
I have two buttons at the bottom with different labels, like button 1 and button 2, that call this action page to insert data. After the insert, the page needs to be redirected page 1 if button 1 was selected, and redirected to page 2 if button 2 was selected.
How can I separate the two so that they go to different forms ?
I tried passing a variable in the cfform action, but it applies to both buttons, thus both go to the same place, and I cannot seem to separate.
