<?php 
$name="";  $email ="";$mobile ="";$pass ="";$cpass ="";
if($this->input->post()){
	$name = $this->input->post('name');
    $email = $this->input->post('email');
    $mobile = $this->input->post('mobile');
}
?>
<style>
p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #ff2207;
    margin: 0;
}

.single-form input, .single-form textarea {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid #07294d;
    font-weight: 500;
    font-size: 16px;
    color: #303030;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}
</style>
<section class="login-register" style="margin-top: 2%;">
	<div class="container">
		<?php if($this->session->flashdata('success')!=""){ ?>
				<div class="alert alert-success">
					<button class="close" data-close="alert"></button>
					<span><?=$this->session->flashdata('success')?></span>
				</div>
		<?php }?> 
	 <?php if($this->session->flashdata('danger')!=""){ ?>
			<div class="alert alert-danger">
				<button class="close" data-close="alert"></button>
				<span><?=$this->session->flashdata('danger')?></span>
			</div>
		<?php }?>  
		<div class="row justify-content-center">
			<div class="col-lg-6">
				<div class="login-register-content">
					<h4 class="title">Create New Account</h4>
                      <div class="login-register-form">
						<form action="" method="POST">
							<div class="single-form">
								<label>Student Name <span style="color: red;font-weight: 900;font-size: 18px;">*</span></label>
								<input type="text" value="<?=$name;?>" name="name" placeholder="Full Name"  required>
								 <div style="color: #ff2207;"><?=form_error('name');?></div>
							</div>
							<div class="single-form">
								<label>Email address <span style="color: red;font-weight: 900;font-size: 18px;">*</span></label>
								<input type="email" value="<?=$email;?>" name="email" placeholder="Email Address" required>
								 <div style="color: #ff2207;"><?=form_error('email');?></div>
							</div>
							<div class="single-form">
								<label>Mobile <span style="color: red;font-weight: 900;font-size: 18px;">*</span></label>
								<input type="number" value="<?=$mobile;?>" name="mobile" placeholder="Mobile Number" required>
								 <div style="color: #ff2207;"><?=form_error('mobile');?></div>
							</div>
							<div class="single-form">
								<input type="submit" value="Register & Pay" name="submit" class="main-btn btn-block" style="color:#fff;"></a>
							</div>
							
							
						</form>
					</div>
				</div>
			</div>
		</div>  
	</div>
</section>