I am new here. I want to have 2 submit buttons(EDIT and DELETE) for the same form. If you press one button, you go to one page and if you press the other button you go to the other page. I think javascript might be helpful. But my script does not work. Any suggestions? Really appreciate if you would help!
Here is my script:
<HEAD>
<TITLE>Management</TITLE>
<script>
function Edit()
{
document.myForm.action =
"user_edit.cfm"
document.myForm.submit();
}
function Delete()
{
document.myForm.action =
"user_delete.cfm"
document.myForm.submit();
}
</script>
</HEAD>
<CFQUERY NAME="USERLIST" DATASOURCE="usermanage">
SELECT USR_ID, USR_FNAME, USR_MNAME, USR_LNAME FROM USER ORDER BY USR_LNAME, USR_FNAME, USR_MNAME
</CFQUERY>