// Make a transaction dispatcher instance tNGs = Request.tNG_CreateObject("tNG_dispatcher"); tNGs.init(""); // Start trigger formValidation = Request.tNG_CreateObject("triggers.tNG_FormValidation"); formValidation.init(); formValidation.addField("kt_login_user", true, "text", "", "", "", ""); formValidation.addField("kt_login_password", true, "text", "", "", "", ""); tNGs.prepareValidation(formValidation); // End trigger // Start trigger formValidation1 = Request.tNG_CreateObject("triggers.tNG_FormValidation"); formValidation1.init(); formValidation1.addField("Email", true, "text", "email", "", "", ""); formValidation1.addField("Username", true, "text", "", "", "", ""); formValidation1.addField("Password", true, "text", "", "", "", ""); tNGs.prepareValidation(formValidation1); // End trigger //start Trigger_CheckPasswords trigger //remove this line if you want to edit the code by hand function Trigger_CheckPasswords(tNG) { myThrowError = Request.tNG_CreateObject("triggers.tNG_ThrowError"); myThrowError.init(tNG); myThrowError.setErrorMsg("Passwords do not match."); myThrowError.setField("Password"); myThrowError.setFieldErrorMsg("The two passwords do not match."); return myThrowError.Execute(); } Request.Trigger_CheckPasswords = Trigger_CheckPasswords; //end Trigger_CheckPasswords trigger // Make a login transaction instance loginTransaction = Request.tNG_CreateObject("tNG_login"); loginTransaction.init("TESTING123"); tNGs.addTransaction(loginTransaction); // Register triggers loginTransaction.registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1"); loginTransaction.registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, formValidation); loginTransaction.registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}"); // Add columns loginTransaction.addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user"); loginTransaction.addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password"); // End of login transaction instance // Make an insert transaction instance userRegistration = Request.tNG_CreateObject("tNG_insert"); userRegistration.init("TESTING123"); tNGs.addTransaction(userRegistration); // Register triggers userRegistration.registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1"); userRegistration.registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, formValidation1); userRegistration.registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}"); userRegistration.registerConditionalTrigger("{POST.Password} NEQ {POST.re_Password}", "BEFORE", "Trigger_CheckPasswords", 50); // Add columns userRegistration.setTable("registrationform"); userRegistration.addColumn("Name", "STRING_TYPE", "POST", "Name"); userRegistration.addColumn("Surname", "STRING_TYPE", "POST", "Surname"); userRegistration.addColumn("Address", "STRING_TYPE", "POST", "Address"); userRegistration.addColumn("Town", "STRING_TYPE", "POST", "Town"); userRegistration.addColumn("County", "STRING_TYPE", "POST", "County"); userRegistration.addColumn("Postcode", "STRING_TYPE", "POST", "Postcode"); userRegistration.addColumn("Email", "STRING_TYPE", "POST", "Email"); userRegistration.addColumn("Username", "STRING_TYPE", "POST", "Username"); userRegistration.addColumn("Password", "STRING_TYPE", "POST", "Password"); userRegistration.setPrimaryKey("clientID", "STRING_TYPE"); // Execute all the registered transactions tNGs.executeTransactions(); // Get the transaction recordset rscustom = tNGs.getRecordset("custom"); // Get the transaction recordset rsregistrationform = tNGs.getRecordset("registrationform"); Debts to Go - Services #tNGs.displayValidationRules()# #tNGs.displayValidationRules()#
 
 
  
   
  
 
    SEARCH ZONE
  
   

With an IVA you could :

At Debts to Go we offer a wide range of solutions to your debt problems. These range from solutions for smaller debt problems to solutions for serious debt. Our debt solutions include:

If you are an existing customer of Debts to Go you can now view your account details online.

Simply log in below with your username and password or complete the new registration form and you will have access to your file within 1 hour
.#tNGs.getLoginMsg()# #tNGs.getErrorMsg()#

#tNGs.displayFieldHint("kt_login_user")# #tNGs.displayFieldError("custom", "kt_login_user")#
#tNGs.displayFieldHint("kt_login_password")# #tNGs.displayFieldError("custom", "kt_login_password")#

If you wish to become a new Web Client user then simply complete the registration form and we will set up your account for you.

We also offer budgetary advice, so call us today on 0800 977 4998 and we can help.

please use the form below to request information or help.

     
   
 
Buy the IVA book from Amazon.com
   
     
Always keep up payments on your loan or mortgage
Terms of Use | Privacy Statement | Accessibility ©2007 Debts to Go. All rights reserved