can somebody tell me what I am dong wrong here. I have to buttons insert and update and only update get executed
<cfif programAction eq "Insert Program">
<cftry>
<cfquery name="insertProgram" datasource="HotBanana_Manager">
insert into trnAcademicPrograms (program,degree,major,fullname,programoption,fee,school_division,hidden,programNote,cohortname) values
('#form.program2#','#form.degree2#','#form.major2#','#form.fullname2#','#form.programoption2#',#form.fee1#,'#session.schoolcode#', '#form.hiddenfield#', '#form.programnote2#', '#form.cohortname2#')
</cfquery>
<cfcatch type="database">
There was a dataabse error
</cfcatch>
</cftry>
<cfelse>
<cftry>
<cfquery name="updateProgram" datasource="HotBanana_Manager">
update trnAcademicPrograms set program='#form.program2#', degree='#form.degree2#', major='#form.major2#', fullname='#form.fullname2#', programoption='#form.programoption2#', fee=#form.fee1#,
hidden=#form.hiddenfield#, programnote='#form.programnote2#', cohortname='#form.cohortname2#' where school_division='#session.schoolcode#' and id=#form.programlist#
</cfquery>
<cfcatch type="database">
There was a dataabse error
</cfcatch>
</cftry>
</cfif>
<input type="submit" name="programAction" id="updateProgram" value="Update Program"><br />
<input type="submit" name="programAction" id="insertProgram" value="Insert Program"><br />