Advertisement
hopingsteam

application/users/registration.php

Jun 5th, 2017
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.25 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">  
  3. <head>
  4. <link href="<?php echo base_url(); ?>assets/css/style.css" rel='stylesheet' type='text/css' />
  5. </head>
  6. <body>
  7. <div class="container">
  8.     <!-- validation -->
  9.     <div class="grids">
  10.         <div class="progressbar-heading grids-heading">
  11.             <h2>User Registration</h2>
  12.         </div>
  13.        
  14.         <div class="forms-grids">
  15.             <div class="forms3">
  16.             <div class="w3agile-validation w3ls-validation">
  17.                 <div class="panel panel-widget agile-validation register-form">
  18.                     <div class="validation-grids widget-shadow" data-example-id="basic-forms">
  19.                         <div class="input-info">
  20.                             <h3>Register Form :</h3>
  21.                         </div>
  22.                         <div class="form-body form-body-info">
  23.                             <form action="" method="post">
  24.                                 <div class="form-group valid-form">
  25.                                     <input type="text" class="form-control" name="name" placeholder="Name" required="" value="<?php echo !empty($user['name'])?$user['name']:''; ?>">
  26.                                     <?php echo form_error('name','<span class="help-block">','</span>'); ?>
  27.                                 </div>
  28.                                 <div class="form-group has-feedback">
  29.                                     <input type="email" class="form-control inputEmail" name="email" placeholder="Email" data-error="That email address is invalid" required="" value="<?php echo !empty($user['email'])?$user['email']:''; ?>">
  30.                                     <?php echo form_error('email','<span class="help-block">','</span>'); ?>
  31.                                 </div>
  32.                                 <div class="form-group valid-form">
  33.                                     <input type="text" class="form-control" name="phone" placeholder="Phone" value="<?php echo !empty($user['phone'])?$user['phone']:''; ?>">
  34.                                 </div>
  35.                                 <div class="form-group">
  36.                                   <input type="password" class="form-control inputPassword" name="password" placeholder="Password" required="">
  37.                                   <?php echo form_error('password','<span class="help-block">','</span>'); ?>
  38.                                 </div>
  39.                                 <div class="form-group">
  40.                                   <input type="password" class="form-control" data-match=".inputPassword" data-match-error="Whoops, these don't match" name="conf_password" placeholder="Confirm password" required="">
  41.                                   <?php echo form_error('conf_password','<span class="help-block">','</span>'); ?>
  42.                                 </div>
  43.                                 <div class="form-group">
  44.                                     <?php
  45.                                     if(!empty($user['gender']) && $user['gender'] == 'Female'){
  46.                                         $fcheck = 'checked="checked"';
  47.                                         $mcheck = '';
  48.                                     }else{
  49.                                         $mcheck = 'checked="checked"';
  50.                                         $fcheck = '';
  51.                                     }
  52.                                     ?>
  53.                                     <div class="radio">
  54.                                         <label>
  55.                                         <input type="radio" name="gender" value="Male" <?php echo $mcheck; ?>>
  56.                                         Male
  57.                                         </label>
  58.                                     </div>
  59.                                     <div class="radio">
  60.                                         <label>
  61.                                           <input type="radio" name="gender" value="Female" <?php echo $fcheck; ?>>
  62.                                           Female
  63.                                         </label>
  64.                                     </div>
  65.                                 </div>
  66.                                 <div class="form-group">
  67.                                     <input type="submit" name="regisSubmit" class="btn-primary" value="Submit"/>
  68.                                 </div>
  69.                             </form>
  70.                         </div>
  71.                         <p class="footInfo">Already have an account? <a href="<?php echo base_url(); ?>users/login">Login here</a></p>
  72.                     </div>
  73.                 </div>
  74.             </div>
  75.             <div class="clear"> </div>
  76.             </div>
  77.         </div>
  78.     </div>
  79.     <!-- //validation -->
  80. </div>
  81. </body>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement