I have two input type buttons, one approve and the other is disapprove. When clicked on either one, it will call a function which will send an email. My question is how do I trigger the function?
<input type = "button" value = "Approve" name = "Approve" onClick =?>
<input type = "button" value = "Disapprove" name= "Dispprove" onClick = ?>
<%
function mail_to_sponsor(form_results)
set mailobj = server.CreateObject("CDONTS.newmail"
mailobj.From = "wip@caregroup.harvard.edu"
mailobj.To = request("Sponsor_Email"
mailobj.subject = "Information Systems Project Request"
mailobj.Body = "Your request has been approve!"
mailerResult = mailobj.send()
end function
%>
<input type = "button" value = "Approve" name = "Approve" onClick =?>
<input type = "button" value = "Disapprove" name= "Dispprove" onClick = ?>
<%
function mail_to_sponsor(form_results)
set mailobj = server.CreateObject("CDONTS.newmail"
mailobj.From = "wip@caregroup.harvard.edu"
mailobj.To = request("Sponsor_Email"
mailobj.subject = "Information Systems Project Request"
mailobj.Body = "Your request has been approve!"
mailerResult = mailobj.send()
end function
%>