// See if the user wants to commit the last transaction client.commit = request.commit; if(client.commit = "YES"){ // Commit the transaction myConn.commitTransaction(); }else{ // Rollback the transaction myConn.rollbackTransaction(); }