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 the email 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','error'); $customerObj->redirect('../owner_registration.php'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','error'); $customerObj->redirect('../owner_registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with antoher phone number','error'); $customerObj->redirect('../owner_registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Company number already registered please try with another company number','error'); $customerObj->redirect('../owner_registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','error'); $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 wareHouse Admin,please check the email for activating the account','success'); $customerObj->redirect('../login.php'); } else if($res==1) { $customerObj->setFlashMessage('Company name already registered please try with another company name','error'); $customerObj->redirect('../registration.php'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','error'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with antoher phone number','error'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Company number already registered please try with another company number','error'); $customerObj->redirect('../registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','error'); $customerObj->redirect('../registration.php'); } } else if(isset($_REQUEST['uflexitUserRegister'])) { $role=3; //Uflexit Individual Customer $res=$customerObj->userSignup($_POST,$role=3); if($res==4) { $customerObj->setFlashMessage('You have successfully registered as wareHouse Admin,please check the email for activating the account','success'); $customerObj->redirect('../login.php'); } else if($res==2) { $customerObj->setFlashMessage('Email already exists please try with another email','error'); $customerObj->redirect('../registration.php'); } else if($res==3) { $customerObj->setFlashMessage('Phone number already exists please try with antoher phone number','error'); $customerObj->redirect('../registration.php'); } else { $customerObj->setFlashMessage('There is some error occured please try again','error'); $customerObj->redirect('../registration.php'); } } ?>