JezK
Edit File: registeration.php
<?php include_once("adminObj.php"); if(isset($_REQUEST['uflexitRegister'])) { //$role=1; //Uflexit Admin $res=$adminObj->userSignup($_POST,$role=1); if($res==4) { echo "<script>alert('You have successfully registered as wareHouse Admin,please check the email for activating the account');</script>"; echo "<script>window.location.href='../design_integration/login.php'</script>"; } else if($res==1) { echo "<script>alert('Company name already registered please try with another company name');</script>"; echo "<script>window.location.href='../design_integration/signup.php'</script>"; } else if($res==2) { echo "<script>alert('Email already exists please try with another email');</script>"; echo "<script>window.location.href='../design_integration/signup.php'</script>"; } else if($res==3) { echo "<script>alert('Phone number already exists please try with antoher phone number');</script>"; echo "<script>window.location.href='../design_integration/signup.php'</script>"; } else if($res==3) { echo "<script>alert('Company number already registered please try with another company number');</script>"; echo "<script>window.location.href='../design_integration/signup.php'</script>"; } else { echo "<script>alert('There is some error occured please try again');</script>"; echo "<script>window.location.href='../design_integration/signup.php'</script>"; } } else if(isset($_REQUEST['uflexitUserRegister'])) { $role=2; //Uflexit customer $res=$customerObj->userSignup($_POST,$role=3); if($res==4) { echo "<script>alert('You have successfully registered as wareHouse Admin,please check the email for activating the account');</script>"; echo "<script>window.location.href='../design_integration/login.php'</script>"; } else if($res==2) { echo "<script>alert('Email already exists please try with another email');</script>"; echo "<script>window.location.href='../design_integration/registration.php'</script>"; } else if($res==3) { echo "<script>alert('Phone number already exists please try with antoher phone number');</script>"; echo "<script>window.location.href='../design_integration/registration.php'</script>"; } else { echo "<script>alert('There is some error occured please try again');</script>"; echo "<script>window.location.href='../design_integration/registration.php'</script>"; } } ?>