def add(): # request.querystring method for get method and request.form for post method if request.form: cbetobj = CBusinessEntities() cbetobj.mSetAccno(request.form.get( "Acc_no")) # same as form name in html form, database col name cbetobj.mSetAccname(request.form.get("AccName")) cbetobj.mSetAcctype(request.form.get("TranType")) cbetobj.mSetAmount(request.form.get("Amount")) savobj = SavingAccounts() savobj.mInsertDataBal(cbetobj) return render_template('home.html')
def mInsertData(): mBindData() savobjbal = SavingAccounts(beobj.mGetAccno(), beobj.mGetAccname(), beobj.mGetAcctype(), beobj.mGetAmount()) savobjbal.mInsertDataBal(beobj)