| Server IP : 74.208.236.18 / Your IP : 216.73.216.45 Web Server : Apache System : Linux infong654 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u39365822 ( 135825) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/7/d147067425/htdocs/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Register - Reveal Create Therapist Account</title>
<link href="css/styles.css" rel="stylesheet" />
<script src="https://use.fontawesome.com/releases/v6.1.0/js/all.js" crossorigin="anonymous"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<style>
.error {
color: #F00;
}
</style>
</head>
<body class="bg-primary">
<div id="layoutAuthentication">
<div id="layoutAuthentication_content">
<main>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-7">
<div class="card shadow-lg border-0 rounded-lg mt-5">
<div class="card-header"><a href="/dashboard.php"><img style=" display: block; margin-left: auto; margin-right: auto; width: 200px;" src="img/RMW_tree_logo_white_low.png"></a></div>
<div id="error"></div>
<div class="card-body">
<?php if(isset($_REQUEST['otpVerification']) && isset($_REQUEST['registerState']) && @$_REQUEST['registerState'] == 'success1') {?>
<?php //var_dump(empty($_SESSION['CURRENT_THERIPIST']))?>
<form method="post" id="otp-form" class="register-form">
<div class="form-group">
<label for="inputEmail"><strong>Enter OTP</strong></label>
<input class="form-control" id="otp_code_reg" name="otp_code_reg" type="text" placeholder="Check your email for OTP" required />
</div>
<div class="d-flex align-items-center justify-content-between mt-4 mb-0">
<a class="small" href="forgetpassword.php">Forgot Password?</a>
<button type="submit" class="btn btn-primary" name="btn-otp" id="btn-otp" value="submit">Submit</button>
</div>
</form>
<?php } else { ?>
<form method="post" id="register-form" class="register-form" >
<div class="row mb-3">
<div class="col-md-6">
<div class="form-group">
<label for="inputFirstName">First Name</label>
<input class="form-control" id="first_name" name="first_name" type="text" placeholder="Enter your first name" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputLastName">Last Name</label>
<input class="form-control" id="last_name" name="last_name" type="text" placeholder="Enter your last name" />
</div>
</div>
</div>
<div class="row mb-3">
<div class="form-group">
<label for="inputEmail">Email Address</label>
<input class="form-control" id="email" name="email" type="email" placeholder="name@example.com" />
</div>
</div>
<div class="row mb-3">
<div class="col-md-6">
<div class="form-group">
<label for="inputPassword">Password</label>
<input class="form-control" id="password" name="password" type="password" placeholder="Create a password" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="inputPasswordConfirm">Confirm Password</label>
<input class="form-control" id="confirm_password" name="confirm_password" type="password" placeholder="Confirm password" />
</div>
</div>
</div>
<div class="mt-4 mb-0">
<div class="d-grid">
<button type="submit" class="btn btn-primary" name="btn-save" id="btn-save">Create Account</button>
</div>
</form>
<?php } ?>
</div>
<div class="card-footer text-center py-3">
<div class="small"><a href="index.php">Have an account? Go to login</a></div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<div id="layoutAuthentication_footer">
<footer class="py-4 bg-light mt-auto">
<div class="container-fluid px-4">
<div class="d-flex align-items-center justify-content-between small">
<div class="text-muted">© 2022 NHDS, Inc.</div>
<div>
<a href="https://www.nhds.com/legal-info">Privacy Policy,Terms & Conditions</a>
</div>
</div>
</div>
</footer>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="js/scripts.js"></script>
<script>
$('document').ready(function() {
/* handle form validation */
$("#register-form").validate({
rules:
{
first_name: {
required: true,
minlength: 3
},
last_name: {
required: true,
minlength: 3
},
email: {
required: true,
email: true
},
password: {
required: true,
minlength: 5
},
confirm_password: {
required: true,
equalTo: '#password'
},
},
messages:
{
first_name: {
required:"please enter first name",
minlength:"first name at least have 3 characters"
},
last_name: {
required:"please enter last name",
minlength:"last name at least have 3 characters"
},
email: {
required:"please enter email address",
email:"please enter a valid email address"
},
password:{
required: "please provide a password",
minlength: "password at least have 5 characters"
},
confirm_password:{
required: "please retype your password",
equalTo: "password doesn't match !"
}
},
submitHandler: submitForm
});
/* handle form submit */
function submitForm() {
var data = $("#register-form").serialize();
$.ajax({
type : 'POST',
url : 'includes/main.php',
data : data,
beforeSend: function() {
$("#error").fadeOut();
$("#btn-submit").html('<span class="glyphicon glyphicon-transfer"></span> sending ...');
},
success : function(response) {
console.log(response);
$("#error").html('');
if(response==1){
$("#error").fadeIn(1000, function(){
$("#error").html('<div class="alert alert-danger"> <span class="glyphicon glyphicon-info-sign"></span> Sorry email already taken!</div>');
$("#btn-submit").html('Create Account');
});
} else if($.trim(response)=="success1"){
$("#btn-login").html('Sending an OTP ...');
setTimeout(`window.location.href = "register.php?otpVerification=active®isterState=${$.trim(response)}";`,2000);
$("#error").fadeIn(1000, function() {
$("#register-form")[0].reset();
});
} else {
$("#error").fadeIn(1000, function(){
$("#error").html('<div class="alert alert-danger"><span class="glyphicon glyphicon-info-sign"></span> Fail To Register </div>');
$("#btn-submit").html('Create Account');
});
}
}
});
return false;
}
$("#otp-form").on("submit", function(){
var data = $("#otp-form").serialize();
$("#btn-otp").html('checking ...');
$.post('includes/main.php', data, function(res) {
$("#error").html('');
if($.trim(res) == 'success2'){
$("#btn-otp").html('Creating account ...');
$("#error").fadeIn(1000, function() {
$("#error").html('<div class="alert alert-success">You have registered successfully! Click here to <a href="index.php">Login</a></div>');
$("#btn-otp").html('Submit');
$("#otp-form")[0].reset();
});
} else {
$("#error").fadeIn(1000, function() {
$("#error").html('<div class="alert alert-danger">'+res+'</div>').show();
$("#btn-otp").html('Submit');
});
}
});
return false;
})
});
</script>
</body>
</html>