Advertisement
Guest User

register

a guest
Jun 27th, 2017
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.93 KB | None | 0 0
  1.    <? include 'inc/head.php'; ?><!-- Full Width Column -->
  2. <?php
  3. require_once ('includes/register_do.php');
  4. ?>
  5.             <body class="hold-transition register-page">
  6.       <div class="register-box-body">
  7.       <?php
  8. session_start();
  9. $string = md5(rand(0, 99));
  10. $_SESSION['captcha'] = substr($string, 17, 6);
  11. $new_string = $_SESSION['captcha'];
  12. ?>
  13.          <form action="" method="POST" class="form-horizontal">
  14.            <div class="form-group">
  15.               <label for="inputName" class="col-sm-2 control-label">Create Username:</label>
  16.               <div class="col-sm-8">
  17.             <input type="text" class="form-control" name="Username" placeholder="User name">
  18.             </div>
  19.             <span class="glyphicon glyphicon-user form-control-feedback"></span>
  20.           </div><? echo $Username_error; ?>
  21.            <div class="form-group">
  22.           <label for="inputName" class="col-sm-2 control-label">Password:</label>
  23.             <div class="col-sm-8">
  24.             <input type="password" class="form-control" name="Password" placeholder="Password">
  25.             </div>
  26.             <span class="glyphicon glyphicon-lock form-control-feedback"></span>
  27.           </div><? echo $Password_error; ?>
  28.            <div class="form-group">
  29.           <label for="inputName" class="col-sm-2 control-label">Confirm Password:</label>
  30.             <div class="col-sm-8">
  31.             <input type="password" class="form-control" name="ConfirmPassword" placeholder="Confirm Password">
  32.             </div>
  33.             <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
  34.           </div><? echo $ConfirmPassword_error; ?>
  35.             <div class="form-group">
  36.            <label for="inputName" class="col-sm-2 control-label">E-mail Address:</label>
  37.              <div class="col-sm-8">
  38.             <input type="Email" class="form-control" name="Email" placeholder="Email@domain.com">
  39.             </div>
  40.             <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
  41.           </div><? echo $Email_error; ?>
  42.            <div class="form-group">
  43.           <label for="inputName" class="col-sm-2 control-label">Security Code:</label>
  44.             <div class="col-sm-8">
  45.             <input type="text" class="form-control" name="SecurityCode" placeholder="Security Code">
  46.             </div>
  47.             <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
  48.           </div><? echo $SecurityCode_error; ?>
  49.          <div class="form-group">
  50.         <label for="inputName" class="col-sm-2 control-label">Security Question</label>
  51.           <div class="col-sm-8">
  52.         <select name="SecurityQuestion" class="form-control">
  53.         <option selected="selected" value="empty">Please Select</option>
  54.         <option value="What city were you born in?">What city were you born in?</option>
  55.         <option value="Who is your favorite person?">Who is your favorite person?</option>
  56.         <option value="What was your nickname?">What was your nickname?</option>
  57.         <option value="What's your favorite food?">What's your favorite food?</option>
  58.         <option value="What is your pet's name?">What is your pet's name?</option>
  59.         <option value="Who is your super hero?">Who is your super hero?</option>
  60.         <option value="What is your favorite sport?">What is your favorite sport?</option>
  61.         <option value="Who was your first teacher?">Who was your first teacher?</option>
  62.         <option value="What is your hobby?">What is your hobby?</option>
  63.         <option value="What was your first job?">What was your first job?</option>
  64.         </select>
  65.         </div>
  66.         </div><? echo $SecurityQuestion_error; ?>
  67.              <div class="form-group">
  68.           <label for="inputName" class="col-sm-2 control-label">Security Answer:</label>
  69.             <div class="col-sm-8">
  70.             <input type="text" class="form-control" name="SecurityAnswer" placeholder="Security Answer">
  71.             </div>
  72.           </div><? echo $SecurityAnswer_error; ?>
  73.            <div class="form-group">
  74.             <label for="inputName" class="col-sm-2 control-label">Captcha:</label>
  75.             <div class="col-sm-8">
  76.                                                 <style>
  77.                                                     .label-new {
  78.                                                         position: relative;
  79.                                                         top: 0;
  80.                                                         padding: 10px 15px;
  81.                                                         font-size: 17px;
  82.                                                         color: #fbfbfb;
  83.                                                         background-color: #212528 !important;
  84.                                                         display: inline-block;
  85.                                                         border-radius: 3px;
  86.                                                         width: auto;
  87.                                                         z-index: 2;
  88.                                                         line-height: .5;
  89.                                                     }
  90.                                                 </style>
  91.                                                 <h5 class="red-text label-new"><?php echo $new_string; ?></h5>
  92.                                                 <input type="hidden" name="Captcha" value="<?php echo $new_string; ?>">
  93.             <input type="text" class="form-control" name="Captcha" placeholder="Captcha">
  94.             </div>
  95.                                          </div><? echo $Captcha_error; ?>
  96.  
  97.           <center>
  98.            <div class="form-group"><? echo $Register_error; ?>
  99.                         <div class="col-sm-offset-2 col-sm-8">
  100.               <input type="submit" name="Reg" class="btn btn-danger" value="Register">
  101.                 <p><b>Please save your account information to use it if want back your account</b></p>
  102.                 <p><b>Please don't give anyone your account information</b></p>
  103.                    </div>
  104.                 </center>
  105.                 </center>
  106.             </div><!-- /.col -->
  107.           </div>
  108.         </form>
  109.      
  110.   </body>
  111. </html>
  112.      <? include 'inc/foot.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement