JezK
Edit File: registeration.php
<?php include_once("adminObj.php"); include_once("checkSession.php"); if(isset($_REQUEST['uflexitRegister'])) { //$role=1; //Uflexit Admin $res=$customerObj->userSignup($_POST,$role=1); if($res==4) { $customerObj->setFlashMessage('You have successfully registered as Warehouse Admin , Please check your Email ID for activating the account','success'); $customerObj->redirect('../owner_login.php'); } else if($res==1) { $customerObj->setFlashMessage('Company name already registered please try with another company name','danger'); $customerObj->redirect('../owner_registration.php'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','danger'); $customerObj->redirect('../owner_registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with another phone number','danger'); $customerObj->redirect('../owner_registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Company number already registered please try with another company number','danger'); $customerObj->redirect('../owner_registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','danger'); $customerObj->redirect('../owner_registration.php'); } } else if(isset($_REQUEST['uflexitBusinessRegister'])) { //Uflexit Bussiness $res=$customerObj->userSignup($_POST,$role=4); if($res==4) { $customerObj->setFlashMessage('You have successfully registered as Bussiness Customer , Please check your Email ID for activating the account.','success'); $customerObj->redirect('../login.php?id=1'); } else if($res==1) { $customerObj->setFlashMessage('Company name already registered please try with another company name','danger'); $customerObj->redirect('../registration.php'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','danger'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with antoher phone number','danger'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Company number already registered please try with another company number','danger'); $customerObj->redirect('../registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','danger'); $customerObj->redirect('../registration.php'); } } else if(isset($_REQUEST['uflexitUserRegister'])) { $role=3; //Uflexit Individual Customer $res=$customerObj->userSignup($_POST,$role=3); // print_r($res);exit; if($res==4) { $customerObj->setFlashMessage('You have successfully registered as Individual Customer , Please check your Email ID for activating the account','success'); $customerObj->redirect('../login.php?id=2'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','danger'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with antoher phone number','danger'); $customerObj->redirect('../registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','danger'); $customerObj->redirect('../registration.php'); } } ?>